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

Clear filter for single collumn

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 20 Jan 2014, 01:05 PM
Hello,

I'm using a custom filter for my Grid on one specific collumn.
Since a have multiple filters on different collumns I would like to be able to clear the active filter for this single collumn.
I don't want to use dataSource.filter({}); cause this will clear all the active filters.
Could anyone help me with this?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Jan 2014, 02:58 PM
Hello Tim,

You can retrieve the applied filters with the filter() method, iterate and modify the object, so that the applied filters for a particular field are removed, and the set the resulting object back to the filter() method.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or