Need to retaine scrollBar at same position while changing itemsource.

2 posts, 0 answers
  1. dhanushkodi
    dhanushkodi avatar
    1 posts
    Member since:
    Dec 2014

    Posted 13 Mar 2015 Link to this post

    I have display whether 10 or more records in RadGridView. then i can scroll down. in my functionality click checkBox after that RadGridView itemsource are assigned or refreshed Radgridview fully refreshed. in this situation i need to display previously scroll position.

    this.MedicalNoteHistoryGrid.ScrollIntoViewAsync(this.MedicalNoteHistoryGrid.Items[this.MedicalNoteHistoryGrid.Items.Count - 1],
                                                                          this.MedicalNoteHistoryGrid.Columns[this.MedicalNoteHistoryGrid.Columns.Count - 1],
                          new Action<FrameworkElement>((f) =>
                               (f as GridViewRow).IsSelected = true;


    i can try above the code display last index of gridview row. in my functionality how to get the scroll position.


  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 16 Mar 2015 Link to this post

    Hi Dhanush,

    You can try is to save the state of the ScrollViewer and apply it after you have reset RadGridView's ItemsSource. You can check the ScrollViewer In RadGridView forum thread where a similar question has already been discussed.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top