SMART datagrid v.1 > Classes > EditOptions

[ grids ver.1.3.5]   Back  Forward

DataLudi.EditOptions.maskWhenPaste  property

If it is true, when operate clipboard paste, it will save the value which will be pasted in each data cell set by Mask Editor after adjusting to mask specified in editor. 

Since it will check after the conversion like pasteBooleanFormat or conversion callback call like pasteCallback, if check in conversion expression or callback in advance, you do not have to use this property. 

Defaults to false.

Getter
function maskWhenPaste(): Boolean
Setter
function setMaskWhenPaste(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            maskWhenPaste: true
        }
    });
Code -2
    grid.setEditOptions({
        maskWhenPaste: true
    });
See Also
MaskCellEditor
Edit Mask Overview
MaskCellEditor.mask
pasteCallback
ValueColumn.pasteCallback
pasteBooleanFormat
pasteDatetimeFormats
pasteNumberChars
Examples
Mask Editor