Hi!
The new Silverlight RadTreeListView based on RadGridView takes more than 10 seconds to display a tree with 700 nodes.
What Am I doing wrong? The WinForms application I am porting to Silverlight loads the same tree almost instantaneously.
Here is my code behind:
treeView.ItemsSource = new SourceTreeItem[] { root };
treeView.ExpandAllHierarchyItems();
Here is my XAML:
<telerik:RadTreeListView
Grid.Row="2"
Name="treeView"
AutoGenerateColumns="False"
IsReadOnly="True"
SelectionMode="Extended"
AutoExpandGroups="True"
CanUserDeleteRows="False"
CanUserFreezeColumns="False"
CanUserInsertRows="False"
CanUserReorderColumns="False"
CanUserSortColumns="False"
EnableRowVirtualization="False"
EnableColumnVirtualization="False"
GridLinesVisibility="None"
IsFilteringAllowed="False"
RowIndicatorVisibility="Collapsed"
ShowColumnHeaders="True"
ShowGroupPanel="True"
telerik_ctrl:StyleManager.Theme="Windows7"
RowStyle="{StaticResource RowStyle}"
SelectionChanged="treeView_SelectionChanged"
DataLoadMode="Synchronous">
<!-- hierarchy is determined by the Children property -->
<telerik:RadTreeListView.ChildTableDefinitions>
<telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
</telerik:RadTreeListView.ChildTableDefinitions>
<!-- column definitions -->
<telerik:RadTreeListView.Columns>
<!-- Name column -->
<telerik:GridViewDataColumn
Header="Name"
DataMemberBinding="{Binding Name}"
Width="*" />
<!-- Sources column -->
<telerik:GridViewDataColumn
Header="Sources"
DataMemberBinding="{Binding SourceCount}"
TextAlignment="Right"
Width="55" />
<!-- Documents column -->
<telerik:GridViewDataColumn
Header="Doc."
DataMemberBinding="{Binding DocumentCount}"
TextAlignment="Right"
Width="55" />
</telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>
Regards,
Jerome