This is a migrated thread and some comments may be shown as answers.

Can't get column text unless it's visible

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sumith Jayasuriya
Top achievements
Rank 1
Sumith Jayasuriya asked on 03 Apr 2013, 06:00 PM
Was wondering if something has changed with the latest version of the Telerik controls.

I am now unable to get a column griditem text unless the column is visible, where as I was able to get the value before.

Below is the code:
Dim gridItem As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim pickedTemplate As String = gridItem("keyCampaignCreative").Text

When the column visible = "false", pickedTemplate = " ", however if I set the column visible = "true" then I get the correct text needed.

This all changed when I upgraded to the latest version of the telerik controls.

Any help is much appreciated.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Apr 2013, 04:57 AM
Hi,

This is reported as a bug with the latest version of controls. Try setting Display property as false instead and access the column value.

Thanks,
Shinu.
0
Andrey
Telerik team
answered on 08 Apr 2013, 12:01 PM
Hi,

Yes, this is a breaking change introduced in Q1 2013. This modification was made for performance optimization of RadGrid. You could check this sticky thread for more information on the
matter and possible work-around.

Please excuse us if this behavior is inconvenient for you.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Sumith Jayasuriya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Andrey
Telerik team
Share this question
or