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

Virtual Scrolling with Unknown Total

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Timothy
Top achievements
Rank 1
Timothy asked on 17 Nov 2015, 08:24 PM

 Is it possible to use Kendo's Grid to do virtual/infinite scrolling with an unknown number of entities?  My data is stored in a NoSQL Datastore which I query using cursors, so in general it is possible to determine where or not the data has tapped out on a particular page fetch, but not the total number of items.  Unfortunately, the schema.total documentation included below seems to indicate that schema.total is required for server side paging.  

 

schema.total Function |String
The field from the server response which contains the total number of data items. Can be set to a function which is called to return the total number of data items for the response.
The schema.total setting may be omitted when the Grid is bound to a plain Array (i.e. the data items' collection is not a value of a field in the server response). In this case, the length of the response Array will be used.
schema.total must be set if the serverPaging option is set to true.

 So, is there any way to do virtual/infinite scrolling with an unknown total?

 Thanks

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 19 Nov 2015, 07:04 AM
Hello Timothy,

Schema.total is required for this scenario, as the total should be available in order to make the respective calculations like the Grid scroller height and position for example. I am afraid that there is no particular workaround for this, as this is core functionality.


Regards,
Kiril Nikolov
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
Timothy
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or