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

Clearing Pivot Filters in Pivot Table

Thread ID:

Created:

Updated:

Platform:

Replies:

146024 Jul 17,2019 10:17 AM UTC Jul 17,2019 12:42 PM UTC ASP.NET MVC 1
loading
Tags: PivotChart
Aakash Jethva
Asked On July 17, 2019 10:17 AM UTC

I want to Clear Manual, Label and Value filters in pivot Table. Is this still possible?

I think the same question have been asked in ASP.NET WEB FORMS forum as well at below location:



Do you have any workaround for this?



Dinesh Babu Yadav [Syncfusion]
Replied On July 17, 2019 12:42 PM UTC

Hi Aakash, 
 
Thanks for contacting Syncfusion support. Please find the response below. 
 
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] 
<script> 
 
    document.getElementById("element").addEventListener('click', function () { 
        var pivotObj = document.getElementById('PivotView').ej2_instances[0]; 
        pivotObj.dataSourceSettings.filterSettings = []; 
         
    }); 
 
</script> 
 
Meanwhile, we have prepared a sample for your reference. Please find the sample link below. 
Screenshots: 
Initial rendering 
 
 
After the button click: 
 
 
 
Please let us know if you have any concerns. 
 
Regards, 
Dinesh Babu Yadav 


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.

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