SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.forceRowValidationWhenPaste  property

如果为true,就会在运行粘贴时,以行为单位,运行验证。 

默认值为false.

Getter
function forceRowValidationWhenPaste(): Boolean
Setter
function setForceRowValidationWhenPaste(value: Boolean)
Code -1
   grid.setOptions({
        edit: {
            forceRowValidationWhenPaste: true,
            forceColumnValidationWhenPaste: true
        }
    });
Code -2
    grid.setEditOptions({
        forceRowValidationWhenPaste: true,
        forceColumnValidationWhenPaste: true
    });
Code -3
    grid.editOptions().setForceRowValidation(true);
See Also
forceColumnValidationWhenPaste
GridBase.validations
DataColumn.validations
单元格编辑概述
Examples
单元格编辑