Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3806
on demand data load in XamDataGrid scroll in MVVM
posted

We have the need to browse several million records using the xamDataGrid and intend on loading the data into memory "on demand" using a common paging model. The problem lies with the xamDataGrid only showing scrollbars that are relevant to the current number of records on the currently-loaded 'page'.

For example, we want to load 1 million records and set a page size of 1,000 records. Our dataset is populated with 1,000 rows, and xamDataGrid shows a scrollbar to navigate those 1,000 rows. But we would like the scrollbar to act like it was scrolling the full 1,000,000 rows, if the user scrolled to 50%, it would load records 500,000 to 501,000 into memory. We are using MVVM design pattern.

Is this possible? Or will we only ever see the total number of records currently in memory represented by the scrollbar?
Is it possible using XamGrid? 

Sample will be great help.