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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove applied filters from PivotGrid

Thread ID:





146019 Jul 17,2019 09:56 AM UTC Jul 17,2019 11:32 AM UTC ASP.NET MVC - EJ 2 1
Tags: PivotGrid
Heli Shah
Asked On July 17, 2019 10:19 AM UTC

I am developing Pivotgrid in Asp.Net MVC from reference demo solution.
I want to create one button, On click of that, I can able to remove all applied filters from PivotGrid using JavaScript.
Does anyone have any workaround on this?

Dinesh Babu Yadav [Syncfusion]
Replied On July 17, 2019 11:32 AM UTC

Hi Heli, 
Thanks for contacting Syncfusion support. 
We have analyzed your query and understand that you should clear the filters on click of button. You can clear the filterSettings on button click by clearing the same. Kindly find the following code snippet. 
Code snippet: [JavaScript] 
    document.getElementById("element").addEventListener('click', function () { 
        var pivotObj = document.getElementById('PivotView').ej2_instances[0]; 
        pivotObj.dataSourceSettings.filterSettings = []; 
Meanwhile, we have prepared a sample for your reference. Please find the sample link below. 
Initial rendering 
After the button click: 
Please let us know if you have any concerns. 
Dinesh Babu Yadav 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon