SMART datagrid v.1 > Classes > EditOptions
如果为true,就会在粘贴多个单元格时,将会替代updateRow而通过setValue而储存值。
每次粘贴个别单元格的值时,将会触发onValueChanged事件。 而且,可以通过指定与updateByCell相同的属性,提供一致的UI。
默认值为false.
grid.setOptions({
edit: {
updateByCell: true,
pasteByCell: true
}
});
grid.setEditOptions({
updateByCell: true,
pasteByCell: true
});
grid.editOptions().setPasteByCell(true);