I am trying to use kendo-filter module in my application currently it has limited filter operators (https://www.telerik.com/kendo-angular-ui/components/filter/api/FilterExpression/#toc-operators/) i want extent the operators and add new operators, Is there any way we can achieve this. Thanks.
Hi Sandeep,
Thank you very much for the details provided.
From what I understand from your question, you are currently utilizing the Kendo UI for Angular Filter component and are looking for an approach that would allow you to add custom filtering operators. Please, correct me if I misinterpreted the requirement.
As of now, the Filter component does not provide a built-in approach that allows developers to use custom operators. In our Feedback Portal, there is an open feature request for a similar functionality which I upvoted on your behalf. This would allow the request to gather more popularity and thus be considered for implementation by our development team. You can track how the voting process goes here:
https://feedback.telerik.com/kendo-angular-ui/1566613-template-for-the-operators
In the meantime, what I could suggest as a workaround is for the developer to utilize a DropDownList component together with the built-in kendoFilterValueEditorTemplate:
https://www.telerik.com/kendo-angular-ui/components/filter/expression-value-template/
This approach would allow the developer to use the selection from the DropDownList which will contain the custom operator and filter the data based on this selection. I fully understand that this is not the most optimal implementation but it is the option that we could offer as of now.
I hope this answers your question. Let me know if you need additional assistance with this case.Regards,
Georgi
Progress Telerik