TreeList filterBy

3 posts, 1 answers
  1. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 21 Jul 2020 Link to this post

    Hi,

    Is the filterBy from TreeList working with a CompositeFilterDescriptor? Because in the doc there is "descriptors FilterDescriptor[] | CompositeFilterDescriptor[]"  https://www.telerik.com/kendo-react-ui/components/treelist/api/filterBy/ but I was not able to make it work https://stackblitz.com/edit/react-dyav5s?file=app/main.jsx . If there is no support for CompositeFilterDescriptor do you have available some function to convert the CompositeFilterDescriptor to FilterDescriptor?

  2. Answer
    Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 22 Jul 2020 Link to this post

    Hello, Matej,

    The filterBy is working with CompositeFilterDescriptor. It expects an array of CompositeFilterDescriptors `CompositeFilterDescriptor[]`.

    When I made the filter in the example an array (it was an object originally), it was working as expected:

    https://stackblitz.com/edit/react-dyav5s-fzz5rx?file=app/main.jsx

    Still, please have in mind that this will not populate the filter row as the filter row can only work with filter descriptors as it has only one level of filtering:

    https://www.telerik.com/kendo-react-ui/components/treelist/api/TreeListProps/#toc-filter

    Regards,
    Stefan
    Progress Telerik

  3. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 22 Jul 2020 in reply to Stefan Link to this post

    sorry, my bad. Thank you!
Back to Top