I've a kendo grid some thing like this
$("#HoleGrid").kendoGrid({ ... });
how can I find out how many rows are in grid??
I've a kendo grid some thing like this
$("#HoleGrid").kendoGrid({ ... });
how can I find out how many rows are in grid??
Try using the following. It should work...
$("#HoleGrid").data("kendoGrid").dataSource.data().length
or as #Quinton Bernhardt
$("#HoleGrid").data("kendoGrid").dataSource.total()
var grid = $("#HoleGrid").data("kendoGrid");
var count = grid.dataSource.total();