FilterExpression blank

6 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 08 Apr 2016 Link to this post

    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

     
  2. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 11 Apr 2016 in reply to Jon Link to this post

    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!
  3. Eyup
    Admin
    Eyup avatar
    3175 posts

    Posted 13 Apr 2016 Link to this post

    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.
  4. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 13 Apr 2016 in reply to Eyup Link to this post

    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

  5. Justin
    Justin avatar
    11 posts
    Member since:
    Dec 2013

    Posted 20 Jan Link to this post

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

     

  6. Eyup
    Admin
    Eyup avatar
    3175 posts

    Posted 25 Jan Link to this post

    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.
Back to Top