SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onInserting  event

It will be fired just before the user types Insert key in the existing row location or down key in the last row to start grid row appending. 

It is the same when you call GridBase.insert. If explicitly call false within this event handler, you will not be able to do row appending. Just after starting appending, onInsertStarted will be fired. 

function onInserting (grid: GridBase, rowIndex: Integer);
Returns
Void
Parameters
grid - GridBase.
rowIndex - Integer.
Code -1
    grdMain.onInserting = function (grid, rowIndex) {
        if ($('#chkInsert').is(':checked')) {
            return false;
        }
    };
See Also
insert
onInsertStarted
onUpdating
onDeleting
Examples
Row Inserting
Row Updating
Row Deleting
Edit Events
Edit Keys