I have a grid that contains a date. I would like to filter the grid based on a "start date" and an "end date" I can specify Extra(true) to get 2 date pickers in the menu filter. And I can specify "Greater Than or Equal To" and "Less Than or Equal To" as the operators. But what I would like is the first operator to only be "Greater Than or Equal To" and the second operator to only be "Less Than or Equal To" Is there a way to do that?
3 Answers, 1 is accepted
The elements which are located within the filter menu are actually Kendo UI widgets. In the relevant event handler any of the exposed widgets can be modified. If you would like to restrict the user to select only "Less than" or "Greater than" options, refer to the code snippets below:
Also, you might want to leave only these two options in the filter menu for the date columns:
Give these suggestions a try and let me know in case further assistance is required.
Thanks for your reply. After working with Georgi in Telerik Support, I have implemented the following solution to my issue.
Thank you for sharing the solution with our community.
Generally, the provided solution does filter the grid's data source manually and in case a filter has been applied, it gets overridden. Nevertheless, it is really up to one's preferences to which approach would be used, as the requirements might be to have a preselected filter operator, or a restriction for filtering with a different operator.
As always, me and the team are available in case further questions arise.