Jerry Chan
Jerry Chan

Reputation: 11

jquery jqgrid paging: display the wrong total pages number

My Json data from wcf:

{"page:1","total:5","records:15"}

But the result data shown as: page 1 of 0 (wrong total page number)
view 1-5 of 5 (wrong records)

any help will be appreciated, thanks in advance.

Upvotes: 1

Views: 1832

Answers (1)

Oleg
Oleg

Reputation: 222007

The data

{"page:1","total:5","records:15"}

are wrong. It should be at least as

{"page":1,"total":5,"records":15}

of better as

{"page":1,"total":5,"records":15,"rows":[]}

Upvotes: 3

Related Questions