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