RadTreeView Binding Time

7 posts, 0 answers
  1. Arpit
    Arpit avatar
    49 posts
    Member since:
    Nov 2010

    Posted 07 Mar 2011 Link to this post

    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?
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 07 Mar 2011 Link to this post

    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!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Arpit
    Arpit avatar
    49 posts
    Member since:
    Nov 2010

    Posted 07 Mar 2011 Link to this post

    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?
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 07 Mar 2011 Link to this post

    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!
  6. Arpit
    Arpit avatar
    49 posts
    Member since:
    Nov 2010

    Posted 08 Mar 2011 Link to this post

    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?
  7. Arpit
    Arpit avatar
    49 posts
    Member since:
    Nov 2010

    Posted 09 Mar 2011 Link to this post

    Hi Petar,

    Any suggestions to for the problem stated above?

    Thanks
  8. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 Mar 2011 Link to this post

    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!
Back to Top
UI for WPF is Visual Studio 2017 Ready