Smart Scroll after load on demand

2 posts, 0 answers
  1. Taehee
    Taehee avatar
    1 posts
    Member since:
    Aug 2010

    Posted 03 Nov 2010 Link to this post


    I am using TreeListView to display hierarchical information. Each node has it's SubGroups. When a user click a node, it will load the SubGroup information from the WCF service and add the items in SubGroups Observable collection. After the collectionchanged notification, TreeListView is always scroll up to top and a user have to scroll back the working position.

    Is there any way to maintain the scroll position?




    <telerik:RadTreeListView Name="radTreeListView1"


    ItemsSource="{Binding Attributions}"










     SelectedItem="{Binding SelectedItemInTree, Mode=TwoWay}"




     RowLoaded="radTreeListView1_RowLoaded" >





     <telerik:TreeListViewTableDefinition ItemsSource="{Binding SubGroups}" />









    private void radTreeListView1_RowIsExpandedChanging(object sender, RowCancelEventArgs e)  





    as AttributionDataViewModel, () => {});







    public void LoadChildrenAttribution(AttributionDataViewModel current, Action onComplete)




      if (current.IsSubGroupLoaded)  




        if (onComplete != null) onComplete(); 






      // build filter context 






      PicasoReportProxy.Instance.ListGroupedAttribution(this.CurrentEntity, context, rst =>






    perationNames.ShowHideBusyIndicator, false);







          if (rst.WasSuccessful) {


            SelectedItemInTree = current;




        else {











  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 08 Nov 2010 Link to this post

    Hi Taehee,

    You can use the ScrollIntoViewAsync method as shown here.

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