Remove Checkboxes from Excel Filter

Hi,

Is there a way to remove the checkbox portion of the excel style filter, just leaving the filter selector portion?

Thanks,

Josh

1 Reply 1 reply marked as answer

AG Ajith Govarthan Syncfusion Team August 7, 2020 03:12 PM UTC

Hi Joshua, 

Thanks for contacting Syncfusion support. 

Based on your query you want to remove the checkbox filter portion of the excel filter. So,  we have prepared an sample and in that sample we used the actionBegin event of EJ2 Grid.  

When you open the filter dialog the actionBegin event will be triggered with requestType as filterchoicerequst and in that we have hidden the checkbox filter content.  For your convenience we have attached the code example so please refer the code for your reference. 

Code Example: 
App.vue 

methods: { 
actionbegin: function(args) { 
if(args.requestType === "filterchoicerequest"){ 
args.filterModel.dialogObj.contentEle.classList.add('e-hide'); 
args.filterModel.dialogObj.element.querySelector('.e-footer-content').classList.add('e-hide'); 


Please get back to us if you need further assistance. 

Regards, 
Ajith G. 


Marked as answer
Loader.
Up arrow icon