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

Grid footer show no items to display although there are data in the grid

2 Answers 1374 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yew
Top achievements
Rank 1
Yew asked on 26 Jun 2013, 12:54 PM
Hi,

I'm new to kendo ui grid and i would like to use remote binding as grid's data source. When i try binding grid with yahoo's api, i meet a problem where the footer is not showing any data count or paging although the grid has successful bind.  I have attached my code below. 

Any help would be greatly appreciated.. Thanks

Attachment

 

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 26 Jun 2013, 01:14 PM
Hi Yew,

The problem occurs because the total property of the DataSource is not set. Please add the following code:
total: function (response) {
   return response.query.count;
},

For your convenience I updated the jsBin sample: http://jsbin.com/awasil/22/edit

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Yew
Top achievements
Rank 1
answered on 27 Jun 2013, 08:07 AM
Thank you very much... It works perfectly...
Tags
Grid
Asked by
Yew
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Yew
Top achievements
Rank 1
Share this question
or