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

Dynamic Columns - Reorder/Resize Client Side

0 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Margaret
Top achievements
Rank 1
Margaret asked on 18 Aug 2017, 09:36 PM

Reorder and resizing of grid columns are occurring client side. When the user hides a column that has been reordered and a rebind occurs server side, although the columns are getting dynamically generated again, there is still a reference to the removed column in the grid and an exception is being thrown (see attached).

Have set the following during grid creation:
ViewStateMode = ViewStateMode.Disabled;
EnableViewState = false;

Have also tried doing a rebind in the client side methods which do the reorder and resize.  This seems to work on reorder (although performance may be an issue) but caused an exception for resize.

I need a way to clear the viewstate of the grid when the server side rebind occurs.  Setting the above settings did not work.

Referenced links:
http://www.telerik.com/forums/how-to-remove-the-radgrid-viewstate-programmatically
http://www.telerik.com/forums/problem-working-with-dynamically-created-radgrid-s

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Margaret
Top achievements
Rank 1
Share this question
or