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

[Solved] Help! Radgrid Hidden Column Viewstate

2 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravindra Mishra
Top achievements
Rank 1
Ravindra Mishra asked on 16 May 2013, 06:19 AM
I have been hiding columns in my radgid in lots of pages and accessing their data after postback.
Now this is no longer possible thanks to the breaking change  introduced for the sake of performance.
How can such a drastic step be taken without giving a fallback mechanism?
I have a very huge web application consisting of more than 500 aspx pages.
Nearly 70 % of the pages use radgrid.
I find the solution to use display false as unacceptable, as it still generates hidden markup(read decreased "PERFORMANCE")
Also it will affect the javascript interacting with the grid to read cell values client side.
I urgently need a solution for this.Rolling back to previous version is not an option for me because i need the latest telerik updates for other parts of my project.

Waiting impatiently....


2 Answers, 1 is accepted

Sort by
0
Ravindra Mishra
Top achievements
Rank 1
answered on 17 May 2013, 04:33 AM
Please reply...
0
Radoslav
Telerik team
answered on 20 May 2013, 07:08 AM
Hi Ravindra,

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.
If you cannot use Display=”false” into your project you can add all columns names as MasterTableView.DataKeyNames and then extract values for them by using:
item.GetDataKeyValue("ColumnUniqueName")
This approach is described into the mentioned sticky thread above.

Please excuse us if this behavior is inconvenient for you. If you need further assistance, do not hesitate to contact us again.

All the best,
Radoslav
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
Ravindra Mishra
Top achievements
Rank 1
Answers by
Ravindra Mishra
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or