var gridObj = $("#grid").ejGrid("instance");
gridObj.option({ "pageSettings": { "pageSize": args } });
This code works for the first page. But, when I use the try to go to page 2 it displays all of the records in the model. Is this a known bug? Is there a work around?
This is my DataManager:
var dm = ej.DataManager({ url: "FetchData", adaptor: new ej.UrlAdaptor(), offline: true });
I just ran into this exact same problem, without explicitly using a DataManager. I change the page size from 10 to 25 on the first page and the code works, but when I go to the second page many more than 25 records are displayed.
The issue is that the page size is set to a particular value, but the grid doesn't reflect that value when it displays data. It's a bug in the way that the grid displays data after the page size is changed.
Hi Thavasianand,The sample code that you sent doesn't compile. It has hardcoded references to three Syncfusion DLLs that don't exist in the ZIP file, and a reference to System.Data.SqlServerCe that cannot be resolved. Can you create a sample that uses all NuGet packages?
Thanks,
Chris
Hi Thavasianand,
I had to update the database to a more recent version.
There's still an unresolved reference to System.Data.SqlServerCe, which I resolved by installing a NuGet package (System.Data.SqlServerCe_unofficial).
However, when I run the program (both before and after installing this package) I get an exception:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
|
Stack Trace:
|
Thanks,
Chris