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

How do I add a clear filter button for custom drop down filter?

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 26 Jul 2020, 03:10 PM

Hi,

For this link:

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/reusable-filter/

 

I would like to use the example in "Row Filtering" to discuss, which is actually the first runnable example in this page

 

The "Category" column uses a custom drop-down filter. Is it possible to add a normal clear filter button to clear the filter conditions, just like the build in filter templates do?

 

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 28 Jul 2020, 09:06 AM

Hi Ray,

Using the kendoGridFilterCellTemplate allows the developer to add any custom code on top of the current implementation. Here is the updated example, where the clear button is added to the dropdownlist-filter component:

https://stackblitz.com/edit/angular-uvjpbh?file=app%2Fdropdownlist-filter.component.ts

I hope this helps.

Regards,
Martin
Progress Telerik

Tags
General Discussions
Asked by
Ray
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or