Hi Marius,
Thanks for contacting Syncfusion support.
We suggest you to use the below solution to resolve this issue. Here we use the allowfiltering option to be changed( i.e., true or false) , to fulfill our requirement. Please check the code snippet for your reference. A sample is also attached below, make a note on that.
App.vue
<div id="app">
<ejs-button id="enable" cssClass="e-flat" @click.native="enable">Enable Filter</ejs-button>
<ejs-button id="disable" cssClass="e-flat" @click.native="disable">Disable Filter</ejs-button>
import { ButtonPlugin } from "@syncfusion/ej2-vue-buttons";
methods: {
enable: function() {
this.$refs.grid.ej2Instances.allowFiltering = true;
},
disable: function() {
this.$refs.grid.ej2Instances.allowFiltering = false;
}
}, |
Please get back to us if you need further assistance
Regards,
Thavasianand S.