SMART datagrid v.1 > Classes > GridBase
Data Row or TreeDataRow which currently has input focus.
If the current row is not DataRow or TreeDataRow being connected to the row of data set, it will return null. focusedRow can return GridRow object.
// grid
$('#delete').click(function () {
var row = grid.focusedDataRow();
if (row) {
ds.deleteRow(row.dataIndex());
}
});
// tree
$('#delete').click(function () {
var row = tree.focusedDataRow();
if (row) {
ds.deleteRow(row);
}
});