SMART datagrid v.1 > Classes > GridRow
GridRowState constant value which indicates editing and focus state of Grid Row.
The user can check by state mark displayed in RowIndicator cell.
Defaults to GridRowState.NORMAL.
$('#commit').click(function () {
var row = grid.focusedRow();
if (row) {
var GridRowState = DataLudi.GridRowState;
var state = row.rowState();
if (state == GridRowState.UPDATING || state == GridRowState.UPDATING || state == GridRowState.UPDATING) {
grid.commit();
}
// You can also use GridRowState function.
if (GridRowState.isEditing(state)) {
grid.commit();
}
}
});