SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.commitWhenPaste  property

If it is true, when operate pasting, if the clipboard data is the value of multiple rows and is being edited, it will commit first. 

If it is false, it will Cancel editing. 

Defaults to true.

Getter
function commitWhenPaste(): Boolean
Setter
function setCommitWhenPaste(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            commitWhenPaste: true,
            commitWhenNoEdit: false
        }
    });
Code -2
    grid.setEditOptions({
        commitWhenPaste: true,
        commitWhenNoEdit: false
    });
Code -3
    grid.editOptions().setCommitWhenPaste(true);
See Also
startEditWhenPaste
GridBase.commit
GridBase.cancel
Cell Editing Overview
Examples
Cell Editing