Performance issue with RadTreeView

4 posts, 0 answers
  1. Ping Pong Guru
    Ping Pong Guru avatar
    3 posts
    Member since:
    Apr 2012

    Posted 19 Jun 2013 Link to this post

    I'm trying to improve the performance of a page loading of an app where I use <telerik:RadTreeView. The tree is two levels down with it's own <telerik:HierarchicalDataTemplate . I used IsVirtualizing which gave a little more performance boost, but not much because the number of items that is listed in the tree view is still high enough to impact the performance.

    If it was listing only like 5 items, it would have satisfied me. The user can then scroll the tree view, and see the remaining items. But initially itself when the items are displayed, the number of items shown are 20 or above. How can I control how many items should be shown? I tried to set the tree view height but that did not help. I tried also to set the height of the grid row. That did not help.

    Any help is appreciated.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 21 Jun 2013 Link to this post

    Hello Vargehese,

    The RadTreeView internally decides how many items to load while it is being measured. If you're using the default Recycling virtualization, decreasing the size of the RadTreeView should result in an initial load of a smaller number of items. Furthermore, in many scenarios a RadTreeView with 20 items doesn't really cause any performance hit.

    This is why I'm not sure why you're experiencing any performance issues. Can you please elaborate further on your RadTreeView implementation. It would greatly help us if you can isolate the issue in a sample solution and send it through the ticketing system. Also, please describe the steps that reproduce the performance hit as well as the result you'd like to see instead. You can even capture a screencast as this will allow us to better understand the behavior of the control on your side. Specifically we'd like to know whether the performance hit is visible during RadTreeView load, while expanding items or while scrolling.

    Once we have more information regarding your scenario and its implementation, we will be able to further investigate the case and suggest a solution. Also, please note that RadTreeView supports LoadOnDemand. You can use this feature to further optimize the performance of the control.

    Regards,
    Tina Stancheva
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Ping Pong Guru
    Ping Pong Guru avatar
    3 posts
    Member since:
    Apr 2012

    Posted 24 Jun 2013 Link to this post

    I could not reduce the number of items shown by reducing the height of the RadGridView. The RadGridView should show only 3 or 4 items by considering the height, but it loads many.
  5. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 26 Jun 2013 Link to this post

    Hello Vargehese,

    I believe you are speaking about RadTreeView not RadGridView. If so. I am a bit frustrated by the fact RadTreeView does not show less items when its height is reduced. Generally if RadTreeView is 240 px in height could display 10 items, setting the height to 120 px would limit the maximum count of visual items to be 5. Could you please send us a sample project demonstrating your case in order to investigate the issue in detail?

    I am changed the thread type to general feedback so you are able to attached your sample in this thread.
    I am looking forward to hearing from you.

    Regards,
    Hristo
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top