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

New User paging questions

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David OBrien
Top achievements
Rank 1
David OBrien asked on 15 Aug 2012, 02:30 PM
I am using the grid to display some json data returned from an ajax datasource 
in the query I am returning between 50 and 100 rows of data
I have pagesize = 10
I have tried everything I could think of but it always says 1 page no matter how many records are actually in the result set.

How do I let the pager know how many pages there are?

the attached json.php shows the response I typically receive from a call
and the index.html is what I am using to generate the grid

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 16 Aug 2012, 08:05 PM
Hello David,

In order to get the pager to work you should configure the schema.total - it returns a number which denotes the total number of data items.

I hope this helps.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
David OBrien
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or