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
110
xamGrid and millions of record display on it
posted

Hello,

I have to fetch millions of records from SQL server  and display it on xamgrid.  I have read couple of months back Infragistics grid fetchs records from database and display just  a page number of rows which is visible to user.

I know this is quite FAQ type question, but I am unable to find the solution. Please point me to existing article, source code or just pseudo code.

Thanks,

Mahesh

 

 

Parents
No Data
Reply
  • 69686
    posted

    Hello Mahesh,

    The XamDataPresenter family controls use some virtualization techniques, so pagination is not really needed. Only the records that are currently in view are created and the rest are not - to improve responsiveness and memory usage of the application. When new records come in view, they are created and the ones that come out of view are destroyed.

    You can impelement your own pagination, by using DataPresenterCommands and BringIntoView() method, by calculating the DataRecordPresenter's height and setting the grid to the desired height - probably something like this thread

    If you would like the lazy load to be performed to get records from the database, you have to implement this yourself.

    Hope this helps,

    Alex.

     

Children