I want to use filter from datatools but I see no option for formating NumericFilter and DateFilter or adding other props like min/max to filters.Is it not possible to customize filters? https://www.telerik.com/kendo-react-ui/components/datatools/filter/
3 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 02 Apr 2020, 07:02 AM
Hello, Matej,
Changing the formating, min, max or other properties will require rendering a custom filter component. For example, render a custom NumericTextBox component with the desired min, max and format properties, similar to what we have discussed here for the ComboBox:
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.
Currently, this is not in our short term ToDo list. The main reason is that these editors are using different built-in components and their combine number of props is over 100.
As someone may want to change the min, someone to check the format and etc, this is why we recommend the custom filter component. This will take advantage of React reusability and the custom filter can be used in multiple applications. Yes, it could take a little more time initially, but it can be helpful in the future.
For example, now the app has requirement to have X format, but this later changes, if we add it as a prop, you have to change that props on every instance of the numeric filter, where if this is a custom numeric filter, you can change it on a single place.
Regards,
Stefan
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.