SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.update  method

Start row updating in Focused Cell

If it has already been row updating, it will return true. edit returns true even if it is row updating or appending. 

First, readOnly of editOptions should be false and updatable should be true. And, onUpdating event will be fired before actually entering updating state. If explicitly return false within this event handler, row updating will not be proceeded. 

function update (): Boolean;
Returns
Boolean
Code -1
    $('#update').click(function () {
        // Commit if it has been editing.
        grid.commit();
        grid.edit();
    }
See Also
edit
isRowEditing
focusedIndex
commit
cancel
editOptions
onUpdating
insert
append
EditOptions
Examples
Row Updating