We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Unfilter all button?

What is the best way to create an Un-filter All button for the grid.  If a user has selected one or more filters on columns instead of clicking the filter icon on each column to turn off filtering, I just want them to be able to click one button that clears the filtering on all columns.

3 Replies

PK Prasanna Kumar Viswanathan Syncfusion Team November 16, 2016 09:49 AM UTC

Hi Michael, 

Thanks for contacting Syncfusion support. 

To clear the filtering for all columns, use clearFiltering method of ejGrid. 

Find the code example and sample:  

@Html.EJ().Button("buttonnormal").Text("Save").Size(ButtonSize.Mini).ClientSideEvents(e => e.Click("Click")) 
    function Click(args) { 
        var grid = $("#FlatGrid").ejGrid("instance"); 

Refer to the Help document for the clearFiltering method. 

Prasanna Kumar N.S.V 

ML Michael Lambert November 16, 2016 07:38 PM UTC

Worked Thanks!

PK Prasanna Kumar Viswanathan Syncfusion Team November 17, 2016 05:18 AM UTC

Hi Michael, 

We are happy to hear that your issue has been resolved. 

Please let us know if you need any further assistance. 

Prasanna Kumar N.S.V 

Live Chat Icon For mobile
Up arrow icon