Clear filter expresssion in radgrid

2 posts, 0 answers
  1. Karthik
    Karthik avatar
    2 posts
    Member since:
    Jul 2012

    Posted 15 Jun 2011 Link to this post

    Hi i am implemented radgrid filter in my code.

    I do the following steps:

    I have dropdown as filter in one of the column and two datepickers in other column
    When i filter using the dropdown and clearing it works fine,
    But when i filter using date pickers and clearing it ,The grid result set is filtered.

    Now when I provide a new search condition and click on the Go button, the radgrid is populated but the filter condidtion provided in the previous case in not cleared.
    Can someone provide me the code to clear the filter expression ???

    It is extremely urgent. 

    Thanks & Regards 
  2. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 17 Jun 2011 Link to this post


    On the click of the Go button, could you try executing the following code to see if it clears the filter on you RadGrid? 

    I hope this helps!

    RadGrid1.MasterTableView.FilterExpression = "";
    // Replace column1 with the UniqueName of the column containing the filter expression that won't go away
    GridColumn column1= RadGrid1.MasterTableView.GetColumnSafe("column1");
    column1.CurrentFilterFunction = GridKnownFunction.NoFilter;
    column1.CurrentFilterValue = "";

  3. DevCraft R3 2016 release webinar banner
Back to Top