Show custom page in grid

I have 1000 records in the database that must be displayed in the grid.
the size of one page 20 records.

I can only get from the database and display the 20 records from a grid so that the number's page shows that only have 50 pages?

Is it possible to transmit to the grid, not all 1000 records, but only 20 for a particular page?


1 Reply

SN Sridhar N Syncfusion Team April 12, 2012 01:54 PM UTC

Hi Mikhail,

Thanks for your interest in Syncfusion products.

Your requirement to page the data on demand can be achieved by setting IsPagingOnDemand to true and handling events “OnDemandDataSourceLoad“ and “OnDemandTotalRowCount”.

Please refer the below link for online sample.

http://asp.syncfusion.com/demos/ui/gridgrouping/Paging/OnDemandPaging/cs/OnDemandPaging.aspx

Documentation Link
http://help.syncfusion.com/Ug_101/User%20Interface/ASP.NET/Grid/Documents/4102ondemandpaging.htm

Please let us know if any concerns.

Regards,
Sridhar N



Loader.
Up arrow icon