Scrollviewer reset when setting row.IsExpanded

2 posts, 0 answers
  1. Sharada
    Sharada avatar
    43 posts
    Member since:
    Mar 2009

    Posted 02 Nov 2011 Link to this post


    In the treelistview row loaded event , when I am trying to expand a tree node programatically,the scrollviewer resets.

     

    private void rtSummaryInfo_RowLoaded(object sender, RowLoadedEventArgs e)

     

    {    

     

            TreeListViewRow

     

    lobjTreeListViewRow = (e.Row as Telerik.Windows.Controls.TreeListView.TreeListViewRow);

     

     

            SummaryData lobjSummaryData = (e.Row as Telerik.Windows.Controls.TreeListView.TreeListViewRow).DataContext as SummaryData;

     

     

            if (_lstExpandedNode.Contains(lobjSummaryData.NodeName))

     

            {

         

     

              lobjTreeListViewRow.IsExpanded =

    true;  // at this point, scrollviewer gets resets 

     

            }

    }

    I need to maintain the scroll position while expanding a node. Your help is appreciated.

  2. Sharada
    Sharada avatar
    43 posts
    Member since:
    Mar 2009

    Posted 03 Nov 2011 Link to this post

    Can you please provide a solution for the same ?.It's really urgent.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top