Search
RowModifyingEventArgs Constructor
See Also
 






Initializes a new instance of the RowModifyingEventArgs class.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

function RowModifyingEventArgs (row, action, rowData, oldValues, newValues)

 Parameters

row

Number. The index of the row that is being modified.

action

One of the RowAction enumeration values that indicates the action that triggered the event.

rowData

Object. The row data.

oldValues

Map. The dictionary of the original field name/value pairs.

newValues

Map. The dictionary of the new field name/value pairs.

 Example

The following code handles the rowUpdating event of a Grid instance. The event uses the RowModifyingEventArgs class to provide event data:

JavaScript  Copy Code

grid.rowUpdating.addEventListener(onRowUpdating);

function onRowUpdating(sender, args)
{
    args.cancel = args.rowData.locked;
}

 See Also