I have a Kendo UI Spreadsheet. How do I get the rows count of latest added rows? Say the spreadsheet is empty, I have added data for 2 rows. How do I get the row count. I am using,
var grid = $("#spreadsheet").data("kendoSpreadsheet");
var sheet = grid.sheetByIndex(0);
var data = sheet.toJSON();
var totalRowsCount = data.rows.length;
Here, the totalRowsCount does not always get data rows count and gets total rows that I have defined for my kendo spreadsheet.