SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.commitEditor  method

Commit if it is cell editing state. If parameter hideEditor is true, it will close the editor after committing. If throwError is true, throws an error. If noAlert is true, the alert generated by the editor can be forcibly suppressed. 

function commitEditor (hideEditor: Boolean, throwError: Boolean, noAlert: Boolean);
Returns
Void
Parameters
hideEditor - Boolean. Defaults to true.
throwError - Boolean. Defaults to false.
noAlert - Boolean. Defaults to false.
Code -1
    $('#btncommit').click(function () {
        grid.commitEditor();
    });    
See Also
commit
cancelEditor
cancel
Examples
Cell Edting