SMART datagrid v.1 > Classes > TreeDataSet
It returns child rows of Data Row which has been specified by parameter parent as array.
parent can specify TreeDataRow object or rowId. If parent is null, it will return the top rows. If no child rows, it will return an empty array.
$('#checkSum').click(function () {
var row = tree.focusedRow();
var sum = 0;
var rows = dataset.children(row);
for (var i = rows.length; i--;) {
sum += rows[i].getData('amount');
}
if (sum > 10000) {
alert('Too large !');
}
});