SMART datagrid v.1 > Classes > TreeDataSet
It returns the value of row which has been specified by row as JSON object of which field names are property.
var row = tree.focusedRow();
if (row) {
row = ds.getRowObject(row.dataRow());
row && console.log(row);
}
var row = tree.focusedRow();
if (row) {
// Replace the value of undefined field with 0.
row = ds.getRowObject(row.dataRow(), 0);
row && console.log(row);
}
var row = tree.focusedRow();
if (row) {
// Replace the value of undefined fields with the corresponding property value of JSON object.
row = ds.getRowObject(row.dataRow(), {
name: '',
qty: 0
});
row && console.log(row);
}