Hi Support,
I am storing scroll position of vertical scrollbar on ScrollChanged Event of xamDataGrid using following code:
scrollPos = xamDatagrid1.ScrollInfo.VerticalOffset;
I want to restore this once the Data us updated using DispatchTimer in the ViewModel. I have using Object Binding for xamDatGrid (DataSource="{Binding Source={StaticResource odpObjectDataProvider1}, Path=GridData}").
What would be the appropriate event to restore the scroll position?
Thank you,
Shakti
Hi Matt,
i want to restore the vertical scroll bar position for all the xamDataGrids in my application not just in one window.
Thank You,
Sandy
Hi Shakti,
I am attaching a new sample that re-establishes the scroll position after the datasource is refreshed.
Sincerely,
Matt Developer Support Engineer
Hi Asma,
ScrollBehaviorOnListChange property is not working when DataSource is updated in ViewModel. It resets back to the top position. Please see the attached sample. currently i am updating data in 3sec. plase try to scroll down, and you will find that it goes back to top.
Thanks,
Hello Shakti,
This property is available in 2010.3 latest service release. I would suggest you to download and install the latest service release from My IG > My Keys & Downloads. You should be able to see service releases section when you scroll down after clicking on NetAdvantage .Net (Ultimate) 2010.3.
Please let me know if you have any questions.
Hi Asama,
I am currently using 10.3, looks like I need to upgarde to 11.0 to use ScrollBehaviorOnListChange propoerty of xamDataPresenter.
Or do you think it is possible in 10.3 xamDataPresenter?
Thanks,Shakti