SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onUpdating  event

It will be fired just after starting row updating when the user starts cell editing or calls edit

In the case that the user starts input in a row not being edited to start row editing, the event will be fired twice. An event will be fired first to determine whether to enable input, and editor parameter will be transferred to true at this point. Later, the event will be fired again to determine whether to actually enable row editing. 

If explicitly return Boolean false within this event handler, it will not start row updating. 

If normally start row updating, onUpdateStarted event will be fired. 

function onUpdating (grid: GridBase, rowIndex: Integer, editor: Boolean);
Returns
Void
Parameters
grid - GridBase.
rowIndex - Integer.
editor - Boolean.
If the user starts input in the row which is not in editing state, this even will be fired again when this value is true. v 1.3.8
Code -1
    grdMain.onUpdating = function (grid, rowIndex, editor) {
        if (!document.getElementById('chkUpdate').checked) {
            return false;
        }
    }
See Also
edit
onUpdateStarted
onInserting
onDeleting
Examples
Row Updating
Row Inserting
Row Deleting
Edit Events
Edit Keys