SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.cancel  method

If it is row editing state, editing will be cancelled and it will return true. If it is not editing state, it will return false

function cancel (focus: Boolean): Boolean;
Returns
Boolean
Parameters
focus - Boolean.
Code -1
    $('#btnCancel').click(function () {
        grid.cancel();
    });    
See Also
Cell Editing Overview
commit
cancelEditor
commitEditor
Examples
Cell Editing