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

radTreeView performance

1 Answer 83 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 18 Jan 2011, 01:09 PM
I was evaluating the telerik treeview control (radTreeView) and tried loading around 10000 records. The performance seemed very slow (rather it hands) as compared to other treeview controls. Can you please let me know whether any optimization can be done... Please find my code below : 

<telerik:HierarchicalDataTemplate x:Key="ChildItemTemplate">
            <StackPanel Orientation="Horizontal">
                <Image Source="../ICON/fgreen.png" Width="16" Height="16" />
                <TextBlock Text=" " />
                <TextBlock Text="{Binding ItemName}"/>
            </StackPanel>
        </telerik:HierarchicalDataTemplate>
        <telerik:HierarchicalDataTemplate x:Key="TreeItemTemplate"
                                          ItemTemplate="{StaticResource ChildItemTemplate}"
                                          ItemsSource="{Binding ChildItem}">
            <StackPanel Orientation="Horizontal">
                <Image Source="../ICON/forange.png" Width="16" Height="16" />
                <TextBlock Text=" " />
                <TextBlock Text="{Binding ItemName}"/>
            </StackPanel>
        </telerik:HierarchicalDataTemplate>
        <telerik:HierarchicalDataTemplate x:Key="TreeItemsTemplate"
                                          ItemTemplate="{StaticResource TreeItemTemplate}"
                                          ItemsSource="{Binding TreeItem}">
            <StackPanel Orientation="Horizontal">
                <Image Source="../ICON/home.png" Width="16" Height="16" />
                <TextBlock Text=" " />
                <TextBlock Text="{Binding ItemName}" />
            </StackPanel>
        </telerik:HierarchicalDataTemplate>

<telerik:RadTreeView Width="300"
                             ItemTemplate="{StaticResource TreeItemTemplate}"
                             Grid.Column="0" Name="myTree" HorizontalAlignment="Left" VerticalAlignment="Top">

Waiting for an early reply as its very critical.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 18 Jan 2011, 06:40 PM
Hi Todd Millett,

As I can manage to see, your treeview is not virtualized which is almost mandatory for such amount of data. You can see this demo of the Silverlight RadTreeView showing the Ui Virtualization and LoadOnDemand features. Applying these features in your tree will speed up your application multiple times. Feel free to ask if you need further assistance or info.

All the best,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
TreeView
Asked by
Todd Millett
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or