Completed
Last Updated: 20 Nov 2014 20:59 by ADMIN
Leslie
Created on: 13 Nov 2014 04:20
Category: Kendo UI for jQuery
Type: Feature Request
1
Fix NaN
Taking the example grid in index.html and adapting it so it uses a local data source, I get "Nan - Nan of 3 items" for this source:

 var movies = [
						{ title: "Star Wars: A New Hope", year: 1977 },
						{ title: "Star Wars: The Empire Strikes Back", year: 1980 },
						{ title: "Star Wars: Return of the Jedi", year: 1983 }
					];
					
					var localDataSource = new kendo.data.DataSource({ data: movies });

				
                    $("#grid").kendoGrid({
                        dataSource: localDataSource,
1 comment
ADMIN
Telerik Admin
Posted on: 13 Nov 2014 10:28
To fix this, you need to set pageSize value through the data source definition. I put the code snippets you provided with this additional configuration in a sample Dojo, which you can use as a reference:
http://dojo.telerik.com/aZEPa/2

For additional technical inquiries, please use our forums or support system on telerik.com. Thus my colleagues from the support team will advice you accordingly. Thank you for your understanding.