How to expand many nodes

2 posts, 0 answers
  1. koala
    koala avatar
    6 posts
    Member since:
    Apr 2015

    Posted 18 Apr Link to this post

    Hello,

    I have the following TreeListView.

    <telerik:RadTreeListView
      AutoExpandItems="{Binding IsToggleExpand}"
      IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"
     

      ItemsSource="{Binding FolderDataView}"
      IsFilteringAllowed="True"
      SelectedItem="{Binding SelectedItem}"
     
      EnableRowVirtualization="True"
      EnableColumnVirtualization="True"
      ValidatesOnDataErrors="InEditMode"
      VirtualizingPanel.IsVirtualizing="True"
      ScrollViewer.VerticalScrollBarVisibility="Visible">

    I use IsExpanded/IsExpandedBinding to open a node and I use IsToggleExpand/AutoExpandItems to open all nodes. Everything works correct.

    If I reopen my Tree I have to expand all nodes of the last session. So I store the expand state when closing and use IsExpanded to open the nodes when opening. If I open many nodes it is very slow (flickering). And the ScrollViewer does not recalc its correct size. Perhaps the UI refreshes too often.

    If I expand all nodes with IsToggleExpand/AutoExpandItems it is much faster and the ScrollViewer resizes correctly.

    How can I improve the user experience and the performance when opening many nodes?
  2. koala
    koala avatar
    6 posts
    Member since:
    Apr 2015

    Posted 18 Apr in reply to koala Link to this post

    Dear Admin,

    could you please delete this?

    Please Do not answer here!



    Please look here: http://www.telerik.com/forums/how-to-expand-many-nodes
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top