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

RadTreeView Binding Time

6 Answers 104 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Arpit
Top achievements
Rank 1
Arpit asked on 07 Mar 2011, 01:48 PM
I am using RadTreeView to display a 4 level entity with fairly large number of nodes. I am using Checked and UnChecked Events of this tree in TriState mode.

I have a provision in GUI with which user can rebind the tree by clicking a button.

I noticed that binding of this tree takes very less time when it is least expanded and takes more time as it  is expanded more.

Is it the obvious behavior of the control or we have a work around?

6 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 07 Mar 2011, 03:05 PM
Hi Arpit,

This is expected behavior of the RadTreeView since it generates its containers (the RadtreeViewItems) when they are needed. Basically , first the RadTreeViewItems from the root level collection are generated and then the other containers are created when their parent is expanded. You can find more info on this here. Do not hesitate to ask if you need further assistance.

All the best,
Petar Mladenov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Arpit
Top achievements
Rank 1
answered on 07 Mar 2011, 03:13 PM
Thanks for your response Petar. I understand and I am fine with it but binding time is hitting the performance of application.

Any thoughts on how to use the RadTreeView for optimized performance?
0
Petar Mladenov
Telerik team
answered on 07 Mar 2011, 05:05 PM
Hello Arpit,

You can check out these articles demonstrating the basic use of the LoadOnDemand  and UIVirtualization features of the RadTreeView. You can also examine this performance demo ( Silverlight) showing how millions of Items are generated in less than a second. Feel free to ask if you need further assistance on this.

Regards,
Petar Mladenov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Arpit
Top achievements
Rank 1
answered on 08 Mar 2011, 11:26 AM
Hi Petar,

Thanks for another help.

Virtulization adds to the performance but another problem here:

When my RadTreeView control is first loaded, only top level out of its Four level hierarchy is expanded and levels beyond 2nd level are collapsed.

Now, if user "Checks" the collapsed Level 2 node, it is required that the Level 3 and Level 4 nodes under this Checked Level 2 node should be automatically checked.

What I am getting is- on Checking collapsed Level 2 node, none of the Level 3 (and hence Level 4) nodes under this Level 2 node are Checked.

Now since I am quite impressed with the performance, I want to use Virtulization but I also want to avoid the failure of Checking/Unchecking the children which are not expanded/out of view.

This has become really important for me to come up with a trade-off.

Any ideas how I can do this?
0
Arpit
Top achievements
Rank 1
answered on 09 Mar 2011, 09:34 AM
Hi Petar,

Any suggestions to for the problem stated above?

Thanks
0
Petar Mladenov
Telerik team
answered on 11 Mar 2011, 09:41 AM
Hello Arpit,

You can examine the project I prepared for you. Basically it uses the TriStateMode feature of the RadTreeView. Feel free to ask if you need further assistance on this.

Kind regards,
Petar Mladenov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TreeView
Asked by
Arpit
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Arpit
Top achievements
Rank 1
Share this question
or