SMART datagrid v.1 > Classes > DataSet
Return the array of data row index or object which has data tag specified by tag.
// Get the rows which have the same tag as the selected row.
var row = grid.focusedRow();
if (row && row.dataIndex() >= 0) {
var rows = ds.rowsByTag(ds.getRowTag(row.dataIndex()));
var sum = 0;
rows.forEach(function (row) {
sum += ds.getValue(row, 'qty');
});
alert('sum = ' + sum);
}