SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.cancelEditor  method

If the editor is currently being displayed, input will be ignored, and if hideEditor is true, the editor will be closed. 

function cancelEditor (hideEditor: Boolean);
Returns
Void
Parameters
hideEditor - Boolean. Defaults to true.
If it is true, it will close the displayed editor.
Code -1
    $('#btnCancel').click(function () {
        grid.cancelEditor();
    });    
See Also
Cell Editing Overview
commitEditor
cancel
commit
Examples
Cell Editing