SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.stopPasteOnError  property

If it is true, when occur an error like validation failure or format conversion failure during pasting, it will stop pasting and throw an exception. 

If it is false, it will not update or append rows in which have occurred error and continue running the rest rows. If want to run validation of each row or cell during pasting, you should specify forceRowValidationWhenPaste, forceColumnValidationWhenPaste properties as true first. 

Defaults to true.

Getter
function stopPasteOnError(): Boolean
Setter
function setStopPasteOnError(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            stopPasteOnError: false,
            forceRowValidationWhenPaste: true,
            forceColumnValidationWhenPaste: true
        }
    });
Code -2
    grid.setEditOptions({
        stopPasteOnError: false,
        forceRowValidationWhenPaste: true,
        forceColumnValidationWhenPaste: true
    });
Code -3
    grid.editOptions().setStopPasteOnError(false);
See Also
forceRowValidationWhenPaste
forceColumnValidationWhenPaste
enableAppend
datetimeFormats
booleanFormat
numberChars
Cell Editing Overview
Examples
Clipboard
Cell Editing