load on demand on tree list view

4 posts, 0 answers
  1. Syed Hussain
    Syed Hussain avatar
    1 posts
    Member since:
    Feb 2010

    Posted 22 Aug 2010 Link to this post

    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>

     

     

    >

     

     

     

  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 24 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ivano
    Ivano avatar
    39 posts
    Member since:
    Feb 2009

    Posted 05 Jan 2011 Link to this post

    Hi

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

    Sincerely.
    Ivano
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 05 Jan 2011 Link to this post

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