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

Clear SortExpressions from viewstate

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 29 Jun 2012, 09:42 AM
Hi,

in CreateChildControls i add the sort expressions to the grid. Because the unique name of a column could change (because the current datasource was removed from the cache because of a timeout), I clear the SortExpressions and add the new ones. But in the DataBound event, only the old sort expressions are set but not my new ones. I think they are set because of the viewstate.
How can I prevent that the Grid overrides my new SortExpressions with them from the viewstate?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 04 Jul 2012, 02:09 PM
Hi Jan-Patrick,

I would suggest you to review the forum thread below where a couple of suggestions are provided:

http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-clear-sorting.aspx

Hope this helps.

Greetings,
Maria Ilieva
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
JP
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or