Hi,
I am using a parameterMap function to submit grid properties to using my data services required names:
When serverPaging = false, the "take" value (options.take) is equal to the page size. But as I am doing client-side paging I want the data service to return more results than just the page size. I would like "take" to be a large number or preferably blank if serverPaging = false.
It's not critical, but my grids are dynamically set to serverPaging = true/false depending on some server algorithms (connection speed, data table size etc). Currently I would have to have two different paramterMaps or conditional code which is inconvenient.
Thanks.
I am using a parameterMap function to submit grid properties to using my data services required names:
parameterMap: function(options) { return { PageIndex: options.page, PageSize: options.pageSize, Fetch: options.take, Offset: options.skip }When serverPaging = false, the "take" value (options.take) is equal to the page size. But as I am doing client-side paging I want the data service to return more results than just the page size. I would like "take" to be a large number or preferably blank if serverPaging = false.
It's not critical, but my grids are dynamically set to serverPaging = true/false depending on some server algorithms (connection speed, data table size etc). Currently I would have to have two different paramterMaps or conditional code which is inconvenient.
Thanks.