We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

paging on server side

Thread ID:

Created:

Updated:

Platform:

Replies:

124256 May 26,2016 05:14 PM May 30,2016 01:33 AM ASP.NET Web Forms 4
loading
Tags: Grid
Kevin
Asked On May 26, 2016 05:14 PM

hi

setting the pageSettings info on server side does not work, what I am trying to do is to use CurrentPage and PageSize to retrieve the records, total count from db and set the paging info.

grid.PageSettings.TotalRecordsCount = total;
grid.PageSettings.TotalPages = (int)Math.Ceiling((double)total/grid.PageSettings.PageSize);
grid.PageSettings.PageCount = grid.PageSettings.TotalPages;

grid.datasource = data;
grid.databind()


does not seem to work.

Jayaprakash Kamaraj [Syncfusion]
Replied On May 27, 2016 09:04 AM

Hi Kevin, 

Thank you contacting Syncfusion support. 

In ASP.NET, the server-side operations(paging/filtering/sorting) is performed by using the WebMethodAdaptor, and the DataManager parameter is set as value. 
 
We already have knowledgebase document for server-side operations. Please refer to the below link. 
 
 
 
Regards, 
 
Jayaprakash K. 


Kevin
Replied On May 27, 2016 11:34 AM

just briefly look at the documentation. the first question is why? why would it need all records to return and does all that in memory? for paging, the whole point of it is to load less data from the database, if there are millions of rows of data in the table, then it loads them all into the memory. is that the kind of design for efficiency in mind? 

Kevin
Replied On May 27, 2016 11:57 AM

never mind, will pass the parameters from the datamanager into the data access layer. 

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On May 30, 2016 01:33 AM

Hi Kelvin, 

If you face any other problem, please let us know. We will help with it. 

Regards, 
Seeni Sakthi Kumar S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;