Search
RowModifiedEventArgs.rowData Property
See Also
 






Gets the row data.

Namespace: MindFusion.DataViews
File: EventArgs.js

 Syntax

JavaScript  Copy Code

get rowData() {}

 Property Value

Object. An object containing the row data.

 Example

The following code uses the rowData property of the RowModifiedEVentArgs object to get the data of the index column of a Grid at the given row and to update its value:

JavaScript  Copy Code

var dv = MindFusion.DataViews;

grid.rowUpdated.addEventListener(onRowUpdated);

function onRowUpdated(sender, args)
{
    var maxIndex = sender.model.getMaxKey();
    args.rowData["index"] = ++maxIndex;
}

 See Also