This is a migrated thread and some comments may be shown as answers.

Datatool Filters formating

3 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 02 Apr 2020, 06:07 AM

Hi,

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

Sort by
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:

https://www.telerik.com/forums/data-tools-filter-customization

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.
0
Matej
Top achievements
Rank 1
Veteran
answered on 02 Apr 2020, 07:12 AM
Is there a future plan to add these options?
0
Accepted
Stefan
Telerik team
answered on 03 Apr 2020, 07:01 AM

Hello, Matej,

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.
Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Matej
Top achievements
Rank 1
Veteran
Share this question
or