SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.commitWhenSort  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 false.

Getter
function commitWhenSort(): Boolean
Setter
function setCommitWhenSort(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