Clear Filters button functionality

1 Answer 409 Views
Button Filter Grid
Ivan
Top achievements
Rank 1
Ivan asked on 09 Jun 2021, 04:45 PM

Hi,

Is there a UI functionality that could be called to clear all the filters on the grid? Or if this doesn't exist is there a way to just get the whole grid again?

Thanks,

Ivan

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 14 Jun 2021, 08:02 AM

Hi Ivan. 

The targeted functionality can be achieved by using the filter method of Grid's datasource. The method can be used as it follows:

$("#grid").data("kendoGrid").dataSource.filter({});

Here are some links to Knowledge base articles that discuss the resetting of the Grid's filters:

I hope the above will help you implement the desired functionality.

Regards,
Petar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Button Filter Grid
Asked by
Ivan
Top achievements
Rank 1
Answers by
Petar
Telerik team
Share this question
or