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

load on demand on tree list view

3 Answers 212 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Syed Hussain
Top achievements
Rank 1
Syed Hussain asked on 22 Aug 2010, 06:02 PM

I was using the radtreeview with quite a lot of nodes and found that performance was slow. I read telerik documentation and it said I can use treelistview as an alternative to treeview. Now when I try to implement loadondemand on this treelist view, during the isexpand property even though the children are added to collection the grid is not refreshed. Since this collection is stored as static variable, when I close the form and open it it displays the parent and children. My isexpanded is implemented in viewmodel where it hits the db and gets the collection. Is there something I am missing in order to implement loadondemand or is this feature not available. I am using WPF Q2 SP1 controls
<
  

<Window.Resources

 

 

 

 

 

<Style x:Key="TreeListViewStyle" TargetType="{x:Type telerik2:TreeListViewRow }">  

 

 

 

<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> 

 

 

 

 

 

</Style>

 

 

 

 

 

 

 

</Window.Resources>

 

 

 

 

 

 

 

 

<telerik:RadTreeListView x:Name="rdTreeList" AutoGenerateColumns="False"

 

 

 

Width="Auto" RowStyle="{StaticResource TreeListViewStyle}"

 

 

 

ItemsSource="{Binding UnitValueObjectList,Mode=TwoWay}"

 

 

 

>

 

 

 

 

 

 

 

<telerik:RadTreeListView.ChildTableDefinitions>

 

 

 

 

 

 

 

<telerik:TreeListViewTableDefinition ItemsSource="{Binding Path=ChildNodes,Mode=TwoWay}" >

 

 

 

 

 

 

 

</telerik:TreeListViewTableDefinition>

 

 

 

 

 

 

 

<telerik:TreeListViewTableDefinition ItemsSource="{Binding Path=ChildNodes,Mode=TwoWay}"/>

 

 

 

 

 

 

 

<telerik:TreeListViewTableDefinition ItemsSource="{Binding Path=ChildNodes,Mode=TwoWay}"/>

 

 

 

 

 

 

 

</telerik:RadTreeListView.ChildTableDefinitions>

 

 

 

 

 

 

 

<telerik:RadTreeListView.Columns>

 

 

 

 

 

 

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name,Mode=TwoWay}" Header="Name" />

 

 

 

 

 

 

 

</telerik:RadTreeListView.Columns>

 

 

 

 

 

 

 

</telerik:RadTreeListView>

 

 

>

 

 

 

3 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 24 Aug 2010, 10:05 AM
Hello Syed Hussain,

 Please check the answer to the private support ticket you opened.

Kind regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ivano
Top achievements
Rank 1
answered on 05 Jan 2011, 05:31 PM
Hi

I need the load on demand feature too. Any solution?

Sincerely.
Ivano
0
Vlad
Telerik team
answered on 05 Jan 2011, 05:33 PM
Hello,

 Please check the local copy of this demo for more info. Here is also the Silverlight version.

Best wishes,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TreeListView
Asked by
Syed Hussain
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Ivano
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or