Get Predicate from applied filters on grid

2 posts, 0 answers
  1. Dheeraj
    Dheeraj avatar
    9 posts
    Member since:
    Jun 2012

    Posted 14 Feb 2013 Link to this post


    I want to get what are the filters applied on Pivot Grid. Is it using predicate or some other format so that same filters i can save in database and can assign grid (last applied filters) when user come to same page.

    Is there any way to do it , please help !

  2. Angel Petrov
    Angel Petrov avatar
    1137 posts

    Posted 19 Feb 2013 Link to this post

    Hello Dheeraj,

    I strongly suggest that you examine this help article which explains in detail how filtering in RadPivotGrid is done. As for saving the filtering settings you can do this by extracting the filter expressions from the FilterExpressions collection of the pivot and store them in your database. Later you can restore the settings in the Page_Load event.
    IEnumerable<PivotGridGroupFilter> filterExpressions = RadPivotGrid1.FilterExpressions;

    All the best,
    Angel Petrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top