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

Rad Grid Post Back Binding Cloumns Twice

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
phani
Top achievements
Rank 1
phani asked on 11 Aug 2011, 04:33 PM
Hi,


i  am using rad grid  to display data  to the user. the page also contain Dropdown when even user selects or changes the value in drop down it will create a post back event.
so when ever page is a post back, the rad grid is binding the columns twice .

can you help to fix it please, i can not give columns in Html page because, the columns vary based on user. 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 Aug 2011, 02:07 PM
Hello Phani,

Keep in mind that when modifying the grid structure on postback you should set the EnableColumnViewState property to False, so that the grid knows that the columns may vary at some stage of the page lifecycle. For more information on the matter you can refer to the help article below:
http://www.telerik.com/help/aspnet-ajax/grid-changing-structure-dynamically.html

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
phani
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or