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
140
Remote paging
posted

Hi,

We are using IgniteUI version 16.2.20162.1035.

As the web service method requires a lot of parameters, doing a 'POST' request to retrieve a big dataset (more than 300k records). Obvious choice would be to rely on Paging.

Configuring igGrid as follows:

dataSource: data,
odata: false,
responseDataKey: "Data",
virtualization: false,
rowVirtualization: false,
columnVirtualization: false,
childrenDataProperty: "Notes",
primaryKey: 'TxnId',
expandCollapseAnimations: false,
autoCommit: true,
autoGenerateColumns: false,
autoGenerateLayouts: false,
height: '100%',
width: '100%',
features: [
{
name: "Paging",
type: "remote",
pageSize: searchPageSize,
showPageSizeDropDown: false,
recordCountKey: 'TotalRecordCount',
pageIndexChanged: function (event, args) {
  searchPageNumber(args.pageIndex);
  searchForTransactions();
}
}

Sample of data received: {"Data":[{"TxnId":256892438}],"TotalRecordCount":100000}

As a result data is displayed up to the searchPageSize, but no actual pagination generated for the rest of the data. Happy to hear any suggestions.

Parents
No Data
Reply
  • 25665
    Offline posted

    Hello Milen,

    Thank you for contacting Infragistics!

    I believe this is happening because you data is local and you set the paging feature to be remote. As the paging itself isn’t making the request for data and instead you are doing it outside the grid you would want to set the type to local. Or instead you could use the dataSourceUrl of the grid and let the grid fetch the data and leave paging remote.

Children