I am trying to create a Kendo grid with a list of student details. On click of the add button, the pager shows \"Nan-Nan of 1 items\".
@(Html.Kendo().Grid<
For some reason, simply adding pageSize to my datasource was not working for me.
I solved this problem by setting my initial grid page to 1, and my pageSize is also defined in my datasource:
var grid = $("#grid").data("kendoGrid");
var dataSource = new kendo.data.DataSource({ data: response.data });
grid.setDataSource(dataSource);
grid.dataSource.page(1); // need so that Nan - Nan is not the starting page.
grid.dataSource.read();