SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onUpdating  event

ユーザーが行の編集をはじめるか、editを呼び出して行の修正が始まる直前に発生する。 このイベントハンドラの内で明示的にfalseをリターンするか、 例外を投げれば行の修正が始まらない。 

function onUpdating (grid: GridBase, rowIndex: Integer, editor: Boolean);
Returns
Void
Parameters
grid - GridBase.
rowIndex - Integer.
editor - Boolean.

行の修正が正常的に始まればonUpdateStartedイベントが発生する。 

function onUpdating (grid: GridBase, rowIndex: Integer, editor: Boolean);
Returns
Void
Parameters
grid - GridBase.
rowIndex - Integer.
editor - Boolean.
Code -1
    grdMain.onUpdating = function (grid, rowIndex) {
        if (!document.getElementById('chkUpdate').checked) {
            return false;
        }
    }
See Also
edit
onUpdateStarted
onInserting
onDeleting
Examples
RowUpdating