Is it possible to use the treeList filter programmatically ?
For example , let's say I have a treeList with a searchBox, once the user tap something in the searchBox , I programmatically apply the filter using directly the "contains" option and show the result to the user.
6 Answers, 1 is accepted
Hello Gers,
TreeListDataSource inherits from DataSource and as such it has the same filtering API.
Regards,
Nikolay Rusev
Telerik
Superb !! I'm going to check that API.
Thank you Nikolay .
Hello, Randy,
Are you referring to server operations - using the load on demand functionality and server filtering?
It would be most helpful if you let me know how reproduce the behaviour. If the node is collapsed and then you expand it, would one of the children meet the filter conditions?
Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Unfortunately, having a filter on the TreeList dataSource and specifying that nodes be collapsed causes the pagination to break, with the calculation of the number of pages being incorrect. Change this sample:
https://demos.telerik.com/kendo-ui/treelist/local-data-binding
... such that there is a filter on the dataSource:
filter: { field: "Position", operator: "neq", value: "Team Lead" }
... and set dataSource.schema.model.expanded: false
There will be 7 pages displayed with content in only the first.
Hello, Gary,
Thank you for pointing this out. It appears that we already have this bug logged in our repository here:
https://github.com/telerik/kendo-ui-core/issues/5491
And the same is linked in our Feedback portal and I voted on your behalf here:
The higher the priority and severity of an issue, the sooner it is scheduled for implementation.
Kind Regards,
Alex Hajigeorgieva
Progress Telerik