Search
RowModifiedEventArgs Constructor
See Also
 






Initializes a new instance of the RowModifiedEventArgs class.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

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

 Parameters

row

Number. The index of the row that was modified.

action

One of the RowAction enumeration values that specifies the action that was performed.

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 uses the oldValues property of the RowModifiedEVentArgs object to get the value of the id column from the deleted row.

JavaScript  Copy Code

var dv = MindFusion.DataViews;

grid.rowDeleted.addEventListener(onRowDeleted);

function onRowDeleted(sender, args)
{
    var itemId = args.oldValues.get("_id");
    //do something
}

 See Also