Hi
On one particular page I am having a problem with filters in a RadGrid. I have another page with a similar setup that works fine.
I am finding that when a user enters a filter value the post back happens as expected but the filter value MasterTableView.FilterExpression is empty. Oddly the grid still seems to do a client side filter but there is no server filter value entered.
Any suggestions as to what could cause this? I've been looking for the various differences in the pages and am stumped on it!
Regards
Jon
5 Answers, 1 is accepted
Please keep EnableViewState set to True. You can find additional info here:
​http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/performance/optimizing-viewstate-usage
Regards,
Eyup
Telerik
Hi Eyup
I will. I must say that the article is a little unclear and could do with a bit of a re-write to be more tabular perhaps. Near the end it says that the filter expression doesn't need the enableviewstate to be set to true. With this alteration in favor of paging the re-enablement of the view state no longer has the impact that it did before so I will happily remove it.
Best Regards
Jon
I get blank value for MasterTableView.FilterExpression when trying to filter on Between or Not Between in ItemDataBound
The ItemDataBound event handler is not suitable for executing a programmatica filter command. You can use the PreRender event hander instead:
http://www.telerik.com/forums/radgrid-enable-filter-code-behind#cel1slcp-U-pmV28CfXTrg
I hope this will prove helpful.
Regards,
Eyup
Telerik by Progress