SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.commitEditor  method

如果是单元格编辑状态,就会进行提交。 如果参数hideEditor为true,就会在提交后,关闭编辑器。 如果throwError为true,则抛出错误。 如果noAlert为true,编辑器生成的警报可被强制压制。 

function commitEditor (hideEditor: Boolean, throwError: Boolean, noAlert: Boolean);
Returns
Void
Parameters
hideEditor - Boolean. 默认值为true.
throwError - Boolean. 默认值为false.
noAlert - Boolean. 默认值为false.
Code -1
    $('#btncommit').click(function () {
        grid.commitEditor();
    });    
See Also
commit
cancelEditor
cancel
Examples
单元格编辑