RadTreeView Freeze/Delay when displaying a RadGridView in a Item

2 posts, 0 answers
  1. Aaron
    Aaron avatar
    1 posts
    Member since:
    Apr 2011

    Posted 12 Jan 2016 Link to this post


     We've been using a RadTreeView to display a RadGridView as one of its items, recently we updated to the latest Telerik Silverlight controls and there is a major delay in showing the RadGridView (previously it was pretty instant).  


    <telerik:RadTreeView Name="AlertTree" 

    The RadGridView only has 100 rows - it loads at normal speeds into the tree when collapsed (i.e. not visible).   The problem occurs when the tree is expanded to display the RadGridView.  The UI appears to freeze and to display the 100 rows with 6 columns takes a minimum of 10 seconds (previously 1 or 2).  The memory also jumps considerably when RadGridView finally becomes visible.

    // Create the grid view
    RadGridView aGridView= new RadGridView();
    aGridView.ItemsSource = new Telerik.Data.DataTable(e.Result);

    // Attach the grid view to the Tree 
    RadTreeViewItem aItem = new RadTreeViewItem();
    aItem .Header = " Header Info";
    aItem .Items.Add(aGridView);

     As mentioned before, this was working fine previously.  



  2. Dinko
    Dinko avatar
    444 posts

    Posted 15 Jan 2016 Link to this post

    Hello Aaron,

    In your case, RadTreeView measures the RadGridView height with Infinity. Because of this, the Virtualization of the RadGridView is turned off  and the performance is greatly reduced. Basically, you can set Height / MaxHight property of the RadGridView.

    In an addition, you can take a look at the Tips and Tricks and Degraded Performance help articles that could be in handy for your solution.

    Hope this information is useful. If you have any other questions, you can contact us again.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top