SMART datagrid v.1 > Classes > EditOptions
如果为true,就会在编辑行的最后一个单元格中,输入Enter或Tab键时,将会提交行。
为了只提交单元格而非行,可以使用hideOnLastCell(ver1.3)。
默认值为false.
grid.setOptions({
edit: {
commitOnLastCell: true
}
});
grid.setEditOptions({
commitOnLastCell: true
});
grid.editOptions().setCommitOnLastCell(true);