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

There is no scrollbar when specifying a dataSource.schema.data field

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yair
Top achievements
Rank 1
Yair asked on 30 Apr 2015, 01:38 PM

Hi

For some reason scrollbar doesnt work property with virtual: true when a schema.data object is specified. This works fine if the data is flat.

 

http://jsfiddle.net/9dn1qsoz/

3 Answers, 1 is accepted

Sort by
0
Yair
Top achievements
Rank 1
answered on 30 Apr 2015, 01:49 PM

it seems that 

dataSource.total() == 0 when data is specified

0
Yair
Top achievements
Rank 1
answered on 30 Apr 2015, 01:55 PM

temporary fix:

dataSource.total = function() { this.data().length; }

0
Dimo
Telerik team
answered on 04 May 2015, 07:53 AM
Hello Yair,

The virtual scrollbar depends on the total item count, which must be returned together with the data items. In addition to schema.data, you need to specify schema.total and provide the total item count information in this field.

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.total

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