This is a migrated thread and some comments may be shown as answers.

options.take on serverPaging = false.

0 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BobDev
Top achievements
Rank 1
BobDev asked on 08 Nov 2011, 06:48 AM
Hi,

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.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
BobDev
Top achievements
Rank 1
Share this question
or