Search
RowModifyingEventArgs.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 handles the rowCreating event of a Grid instance. It uses the rowData property of the RowModifyingEventArgs class to increment the index of rows when a new row is added:

JavaScript  Copy Code
// increment index when a new row is added
grid.rowCreating.addEventListener((sender, args) =>
{
    var maxIndex = sender.model.getMaxKey();
    args.rowData["index"] = ++maxIndex;
});

 See Also