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

Checkboxes with CheckChildren gives poor performance

3 Answers 82 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 28 Jun 2013, 03:56 PM
Hi there,

I've created a TreeView with checkboxes and CheckChildren set to true. When I check one of the higher level nodes (with around 100 children total) it takes several seconds to check them. Am I doing something wrong or is the JavaScript for this not very performant? I've managed to replicate the problem by simply increasing the number of nodes in the demo cshtml. A very simple jQuery command to check all of the checkboxes is lightning fast, so it doesn't look like a browser performance issue.

Many thanks,
Chris

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 02 Jul 2013, 11:26 AM
Hello Chris,


If you take a look at the TreeView source code, you could assure that it is also using jQuery to check the children checkboxes. For your convenience I prepared the following JS Bin example, which demonstrates a TreeView with around 100 child nodes for the root level node. It performs as expected in all major browsers on my side. Please let me know if you are experiencing any issues with it.


I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 02 Jul 2013, 02:31 PM
Hi Dimiter,

After some investigation I found that the performance with version 514 is much better than that with 319 which I was using previously. Using the latest kendo.all.min.js has sorted it.

Many thanks,
Chris
0
Chris
Top achievements
Rank 1
answered on 02 Jul 2013, 02:38 PM
It turns out that version 514 gives much better performance than version 319. Thanks!
Tags
TreeView
Asked by
Chris
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Chris
Top achievements
Rank 1
Share this question
or