Datatool Filters formating

4 posts, 1 answers
  1. Matej
    Matej avatar
    69 posts
    Member since:
    Jun 2019

    Posted 02 Apr 2020 Link to this post

    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/

  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 02 Apr 2020 Link to this post

    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.
  3. Matej
    Matej avatar
    69 posts
    Member since:
    Jun 2019

    Posted 02 Apr 2020 in reply to Stefan Link to this post

    Is there a future plan to add these options?
  4. Answer
    Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 03 Apr 2020 Link to this post

    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.
Back to Top