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

Slow filter behavior

1 Answer 73 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
imad
Top achievements
Rank 1
imad asked on 10 Jan 2014, 10:18 AM
Hi,

Since the treeview doesn't support the filter on all levels, i had to implement the filter manually on all tree levels. The implementation is to loop over the node and set the filter on the children datasource: nodes[i].children.filter({ field: "label", operator: "startswith", value: text }) and to clear the filter nodes[i].children.filter({}).

The total nodes/leafs in the tree is arround 300, with arround 8 levels deep, the maximum child count is 80. The problem is that setting the filter also clearing the filter is slow regarding the size of the data, range between 6-9 seconds.

any help regarding this behavior.
Regards.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 14 Jan 2014, 08:42 AM
Hello Imad,

I am afraid we cannot offer you a way to improve the performance. Since each vertex of the TreeView have its own dataSource and performs its own filtering - it is normal to see a slow down because of the exponential complexity on each level of the TreeView.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
imad
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or