what is the max depth limit of radtreeview items

6 posts, 0 answers
  1. Todd Millett
    Todd Millett avatar
    115 posts
    Member since:
    Jul 2009

    Posted 04 Aug 2011 Link to this post

    I have a radtreeview with max depth around 100 items, when i keep load on demand enabled after loading almost 60 items on demand it gives an exception. Is this a known limitation?
  2. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 04 Aug 2011 Link to this post

    Any Known Limitation, that we have to live with ?
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Aug 2011 Link to this post

    Hi Mirang,

     We are not aware of similar issue in the RadTreeView. Having so much hierarchy levels could lead to serious performance downgrade but not an exceptions.  What is the exception that you have come up with? Is it possible for you to isolate a scenario in a runnable application that reproduces it ? This will be highly appreciated and we would be better able to assist you.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  5. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 09 Aug 2011 Link to this post

    I am using the latest build to test this. Please find my sample code :
    XAML code :
    <telerik:RadTreeView x:Name="treeView" IsVirtualizing="True" telerik:TreeViewPanel.VirtualizationMode="Hierarchical"
                                     IsLoadOnDemandEnabled="True" LoadOnDemand="treeView_LoadOnDemand">
                    <telerik:RadTreeViewItem Header="1" IsLoadOnDemandEnabled="True"/>
                </telerik:RadTreeView>

    code behind :

     private void treeView_LoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)
            {
                RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;
                item.Items.Add(new RadTreeViewItem() { Header = int.Parse(item.Header.ToString()) + 1, IsLoadOnDemandEnabled= true });
                item.IsLoadOnDemandEnabled = false;
                item.IsLoadingOnDemand = false;
                item.BringIntoView();
            }

    You will see that after you try expanding 56/57/58 rth item it throws an exception.
  6. Claudio Duarte
    Claudio Duarte avatar
    1 posts
    Member since:
    Mar 2010

    Posted 09 Aug 2011 Link to this post

    I have the same problem with a datasource of 63 levels, it is posible to fix this or what can I do to solve this?
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 Aug 2011 Link to this post

    Hi Claudio Duarte,

     We investigatde this further and it appeared that there is a limitation in the number of nested elements that comes from the Silverlight Framework. This number varies depending of the type of the elements. We made a small test that shows that you cannot nest more than 80 Buttons for example. So, the exception that raises when having 50-60 nested RadTreeViewItems is expected.  
    Please accept my apologies for any inconvenience caused previously.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
DevCraft banner