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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unfilter all button?

Thread ID:

Created:

Updated:

Platform:

Replies:

127434 Nov 15,2016 06:59 PM UTC Nov 17,2016 05:18 AM UTC ASP.NET MVC 3
loading
Tags: Grid
Michael Lambert
Asked On November 15, 2016 06:59 PM UTC

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.
Thanks

Prasanna Kumar Viswanathan [Syncfusion]
Replied On 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")) 
 
@(Html.EJ().Grid<Sample118577.OrdersView>("FlatGrid") 
.Datasource(Model) 
.--------------------------------- 
) 
 
<script> 
    function Click(args) { 
        var grid = $("#FlatGrid").ejGrid("instance"); 
        grid.clearFiltering(); 
    } 
</script> 



Refer to the Help document for the clearFiltering method. 


Regards, 
Prasanna Kumar N.S.V 
 


Michael Lambert
Replied On November 16, 2016 07:38 PM UTC

Worked Thanks!

Prasanna Kumar Viswanathan [Syncfusion]
Replied On 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. 

Regards, 
Prasanna Kumar N.S.V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;