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

[Solved] Filter Values lost on post back when EnableColumnsViewState is false

2 Answers 364 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 26 Aug 2009, 04:57 PM
I am trying to use the built in filtering in a grid that I am building dynamically.  Everything works fine as long as the EnableColumnsViewState is true.  When this value is false, and I am filtering on multiple columns, the Filter Values are not being retained on postback.   Just the last filter is re-displayed.  The grid is still being filtered correctly because I have implemented custom filtering using a FilteredDataset. How can I get around this issue?  I need to disable column viewstate due to other problems I encountered.

Randy

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Aug 2009, 07:50 AM
Hi Randy,

From what I understand RadGrid requires the column ViewState to be enabled for managing the Grid filtering. Telerik has also mentioned that in one of the help article.
Optimizing ViewState usage

Thanks
Princy
0
Randy
Top achievements
Rank 1
answered on 27 Aug 2009, 12:00 PM
Thanks.   That makes sense.  Do you know if I can manually set the filter value so it is displayed on postback?  I am using custom filtering (Filtered Dataset) and I have all of the filters values already stored in viewstate in an object that I am managing.  At what point (or what event) can I tap into that will allow me to set the the filtervalue when the grid is being rendered. 

thanks, Randy
Tags
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Randy
Top achievements
Rank 1
Share this question
or