SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onInsertStarted  event

It will be fired just after the user types insert key or calls insert, append methods to start row appending or inserting. 

Just before the operation, onInserting event will be fired. 

In addition, if throw an exception within this event handler, row editing will be cancelled. v 1.3.8 

function onInsertStarted (grid: GridBase, row: GridRow, appending: Boolean);
Returns
Void
Parameters
grid - GridBase.
row - GridRow.
appending - Boolean.
If it is adding after the existing last row, it will transfer true.
Code -1
    grid.onInsertStarted = function (grid, row, appending) {
        console.log('Row inserting started.');
    };
See Also
onInserting
insert
append
Examples
Row Inserting
Row Updating
Row Deleting
Edit Events
Edit Keys