I am trying to fill the KendoUI grid with JSON data, where the server returns the total number of rows along with the data, but I am having problems with serverPage working correctly. I create and assign a grid data source as follows:
var oDS = new kendo.data.DataSource({
schema: {
data: "data",
total: "total"
},
data: self.grdTableData,
serverPaging: true,
pageSise: 50,
total: joOutput["TotalRecords"]
});
grdTableResults.setDataSource(oDS);
and the first page shows the first 50 of 939 entries, but there is only 1 page (navigation arrows never react to anything), and I see NaN - NaN of 939 elements and a rotating circle of dots in the center of the grid that never disappears.
, , , , $.ajax JSON .done "transport: read", , , ( , - ?). , , , , , , http://jsfiddle.net/rusev/Lnkug/. "" "", , "startIndex" "rowsPerPage", , . , , . "startIndex" , " ", reset "rowsPerPage"?
, . . !