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

Define schema: total when unknown count in json

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ak12345
Top achievements
Rank 1
ak12345 asked on 04 Jun 2014, 09:07 PM
Hi, Can anyone please let me know how can I define schema: total when I have the following JSON data coming from a web service: (want to implement server paging)

[
    {
        "fname": "john",
        "lname": "Lane"
    },
    {
        "fname": "Kim",
        "lname": "William"
    }............................// huge data
]

1 Answer, 1 is accepted

Sort by
0
CS
Top achievements
Rank 2
answered on 05 Jun 2014, 05:20 AM
That should be rather straight forward I think
1.total: function ( data ) {
2.        return data.length;
3.     }
Tags
Grid
Asked by
ak12345
Top achievements
Rank 1
Answers by
CS
Top achievements
Rank 2
Share this question
or