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

Clear Filters on Client-Side

2 Answers 267 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 09 Sep 2009, 02:00 PM
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 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 10 Sep 2009, 08:27 PM
This demo has an example of a button that clears filters (look at the second RadGrid), this should be able to help you.
0
Princy
Top achievements
Rank 2
answered on 11 Sep 2009, 01:39 PM
Hi Frank,

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

Thanks,
Princy.
Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or