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

[Solved] Filters and viewState

1 Answer 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
guillaume.lebel asked on 07 Jan 2010, 09:02 PM
Hi,

We are using custom filters for our RadGrids.  We simply extended the class GridBoundColumn and binded the specific data for that column to a DropDownList.  The problem is that when a value is selected in a filter, it clears the filter values set on other columns.  Trying various configuration made us find out that the problem appears only when the page ViewData is 'False' and disappears when it is 'True'.  Also, when we change the order of declaration of extended gridBoundColumn in the .aspx page, the clearing of filter values is different but I cannot find what the pattern is exactly. 

Does anybody knows what could be the relation of this behavior with the viewState.  I don't think it is mentioned in the documentation of the RadGrid that we need the viewState to be true for it to work properly. Am I missing something ?

Best regards,

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Jan 2010, 08:16 AM
Hi,

RadGrid does NOT manage the state for the following features when its EnableViewState property is set tofalse:
·custom edit forms (user control or form template)
·filtering
·grouping

You can also check the following help document
http://www.telerik.com/help/aspnet-ajax/grdviewstateoptimization.html

Thanks,
Princy
Tags
Grid
Asked by
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Answers by
Princy
Top achievements
Rank 2
Share this question
or