radTreeView performance

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

    Posted 18 Jan 2011 Link to this post

    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.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    3055 posts

    Posted 18 Jan 2011 Link to this post

    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>>
Back to Top