Slow filter behavior

2 posts, 0 answers
  1. imad
    imad avatar
    19 posts
    Member since:
    Mar 2007

    Posted 10 Jan 2014 Link to this post


    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.
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 14 Jan 2014 Link to this post

    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
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top