SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.rowState  property

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.

Getter
function rowState(): GridRowState
Code -1
    $('#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();
            }
        }
    });
See Also
GridRowState
dataState
RowIndicator
Examples
Row Indicator