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

what is the max depth limit of radtreeview items

5 Answers 175 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Todd Millett
Top achievements
Rank 1
Todd Millett asked on 04 Aug 2011, 06:29 AM
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?

5 Answers, 1 is accepted

Sort by
0
mirang
Top achievements
Rank 1
answered on 05 Aug 2011, 01:27 AM
Any Known Limitation, that we have to live with ?
0
Petar Mladenov
Telerik team
answered on 09 Aug 2011, 07:46 AM
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 >>

0
mirang
Top achievements
Rank 1
answered on 09 Aug 2011, 07:57 AM
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.
0
Claudio Duarte
Top achievements
Rank 1
answered on 09 Aug 2011, 05:08 PM
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?
0
Petar Mladenov
Telerik team
answered on 11 Aug 2011, 02:56 PM
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 >>

Tags
TreeView
Asked by
Todd Millett
Top achievements
Rank 1
Answers by
mirang
Top achievements
Rank 1
Petar Mladenov
Telerik team
Claudio Duarte
Top achievements
Rank 1
Share this question
or