SMART datagrid v.1 > Classes > GridDataSet
It returns values of data rows which have been contained in the range specified by startRow and count as two dimensional array.
If no corresponding row, it will return an empty array. In order to get the value of each row as JSON object, you can call getRowObjects.
var rows = ds.getRows(0, 100);
for (var i = 0; i < rows.length; i++) {
var row = rows[i];
for (var c = 0; c < row.lengt; c++) {
console.log(row[c]);
}
}
// Get all rows.
var rows = ds.getRows();
console.log(rows);
// Get rows which have been specified as list.
var rows = grid.checkedDataIndices();
rows = ds.getRows([rows]);
console.log(rows);