SMART datagrid v.1 > Classes > EditOptions
如果为true,就会在粘贴过程中,发生验证失败或格式转换失败等错误时,将会中止粘贴并抛出例外。
如果为false,就不会修改或添加发生错误的行,并且继续运行剩余行。 如果想在粘贴过程中,运行各个行或单元格验证, 就需要首先将forceRowValidationWhenPaste、forceColumnValidationWhenPaste属性指定为true。
默认值为true.
grid.setOptions({
edit: {
stopPasteOnError: false,
forceRowValidationWhenPaste: true,
forceColumnValidationWhenPaste: true
}
});
grid.setEditOptions({
stopPasteOnError: false,
forceRowValidationWhenPaste: true,
forceColumnValidationWhenPaste: true
});
grid.editOptions().setStopPasteOnError(false);