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

FilterExpression blank

5 Answers 165 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 08 Apr 2016, 12:53 PM

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

Sort by
0
Jon
Top achievements
Rank 1
answered on 11 Apr 2016, 09:08 AM
EnableViewState was set to false.  Kind of annoying as I wanted to keep that false but it works when set to true so I guess I need to accept that!
0
Eyup
Telerik team
answered on 13 Apr 2016, 07:29 AM
Hello Jon,

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
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Jon
Top achievements
Rank 1
answered on 13 Apr 2016, 08:16 AM

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

0
Justin
Top achievements
Rank 1
answered on 20 Jan 2017, 11:58 PM

I get blank value for MasterTableView.FilterExpression when trying to filter on Between or Not Between in ItemDataBound

 

0
Eyup
Telerik team
answered on 25 Jan 2017, 12:06 PM
Hello Justin,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Eyup
Telerik team
Justin
Top achievements
Rank 1
Share this question
or