SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.edit  method

Start row updating in Focused Cell

If it has already been row updating or appending, it will return true. update will return true only when row updating. 

First, readOnly of editOptions should be false and updatable should be true. In addition, onUpdating event will be fired before entering actual updating state. If explicitly return false within this event handler, you will not be able to proceed row updating. 

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