SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onEditCanceled  event

It will be fired when the user types esc key or directly calls cancelEditor during editing in cell editor to cancel editing. 

In the case of cancelling row editing by calling cancel, the event will not be fired and the editor will be closed. 

function onEditCanceled (grid: GridBase, index: CellIndex, edited: Boolean);
Returns
Void
Parameters
grid - GridBase.
index - CellIndex.
The location of cell which is edited now.
edited - Boolean.
If have entered after displaying the editor, it will be true. v 1.3.9
Code -1
    grid.onEditCanceled = function (grid, index, edited) {
        if (edited) {
            alert("Cell editing is cancelled.");
        }
    };
See Also
onEditCommitted
onEditChanged
Cell Editing Overview
Examples
Cell Editing
Edit Events
Edit Keys