Clear Filters on Client-Side

3 posts, 0 answers
  1. Frank
    Frank avatar
    28 posts
    Member since:
    May 2006

    Posted 09 Sep 2009 Link to this post

    Hi. I'm trying to clear filter values for all the columns in a grid view doing something like in the code below:

    var col = masterTable.get_columns();

    for (i = col.length - 1; i >= 0; i--) {
    masterTable.filter(col[i].get_uniqueName(), "", 0);

    but nothing happens. Only if I fill the first column's filter and other are empty, the above code snippet function.
    How else could I clear all filters in a Grid on client-side?
    Thanks and best regards, Frank.
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    This demo has an example of a button that clears filters (look at the second RadGrid), this should be able to help you.
  3. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Sep 2009 Link to this post

    Hi Frank,

    You can also refer the following forum link which discusses similar scenario.
    Clear the filter expression value client side

Back to Top