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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Paging for ejGrid not working after first page

Thread ID:

Created:

Updated:

Platform:

Replies:

124608 Jun 17,2016 03:12 AM UTC Jun 18,2016 04:17 AM UTC JavaScript 3
loading
Tags: ejGrid
Chris Mack
Asked On June 17, 2016 03:12 AM UTC

I have an ejgrid on a page and the first page shows the proper 25 records, but when I navigate to another page it shows all of the records rather than the selected page.

Here is my grid code. Any assistance would be appreciated.

$('#Grid').ejGrid({
                        dataSource: reportDetails,
                        enableRowHover: true,
                        allowTextWrap: false,
                        allowPaging: true,
                        allowSorting: true,                   
                        allowFiltering: true,
                        allowResizing: false,
                        allowResizeToFit: false,
                        allowKeyboardNavigation: true,
                        allowSearching: true,
                        allowMultipleExporting:true,
                        enablePersistance:true,
                        pageSettings: { pageSize: '25' },
                        filterSettings: { filterType: "excel" },
                        columns: [
                                    { field: "Date", width: 115 },
                                    { field: "Name", width: 120 },
                                    { field: "Product" },
                                    { field: "Variation", width: 120},
                                    { field: "Buy", width: 90},
                                    { field: "Order Status", width: 90 },
                                    { field: "Payment Status", width: 90 },
                                    { field: "Shipping Status", width: 100 },
                                    { field: "Actions", width: 90,allowFiltering:false,allowSorting:false}
                                ]
                        });

Ragavee U S [Syncfusion]
Replied On June 17, 2016 04:05 AM UTC

Hi Chris, 

Thanks for your interest in Syncfusion products. 

From your code example, we could see that you have specified the “pageSize” property of the Grid pageSettings as string which is supposed to be an integer value. 

Since the pageSize property is defined as a string value, upon paging the whole data is fetched thus resulting the reported behavior. So we suggest you define it as integer value. Please refer to the below API documentation link for more information  



Regards, 
Ragavee U S. 


Chris Mack
Replied On June 17, 2016 01:14 PM UTC

Ah thank you, that did it.

Oddly, I took that code from a page that worked great.

Ragavee U S [Syncfusion]
Replied On June 18, 2016 04:17 AM UTC

Hi Chris, 
  
Thanks for your update. 
  
We are happy that your issue is resolved. 
  
Regards, 
Ragavee U 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.

Warning Icon 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.Close Icon

;