As of 2024-06-01, has there been any update to Syncfusion to allow this?
Hi Daniel Tam,
We understand that you want to change the filter data source for the Excel filter module with a custom data source. This can be achieved by assigning a custom dataSource to the filter module in the actionBegin event for the requestType "filterbeforeopen". We have already discussed this in our knowledge base. Please refer to the link below for more information:
KB Link : How to change the data source for checkbox filter popup in Grid? (syncfusion.com)
Please get back to us, if you need further assistance.
Regards,
Johnson Soundararajan S
I was able to produce what you suggested; however, it didn't help as it seems to be comparing literal strings that match the filter checkbox. So using the example above, when I check "HR" the filter will only return entries with only "HR". Entries with "HR, HR Control" and
"HR, HR Control WFM" wouldn't return.
Is it possible to make it so this specific column checkboxes check for contains/includes rather than equals?
Hi Daniel Tam,
Based on your query, you would like to change the default operator from 'equals' to 'contains' in the Excel filter. We would like to inform you that by default, the grid filter is set to "Equals", which limits the filtering capability to exact matches only. However, the EJ2 Grid does not currently allow for the default filter type to be changed programmatically to "Contains". When using a checkbox combination with column items in the Excel filter, the predicate is generated based on the length of checked and unchecked values. Here are some examples to clarify:
Therefore, providing the 'contains' operator as per your request would break the default behavior. Our Excel filter implementation is based on the Microsoft Excel filter, and thus we cannot change the operator to 'contains'.
Regards,
Vikram S