Gets the row data.
Namespace: MindFusion.DataViews
File: EventArgs.js
JavaScript Copy Code |
---|
get rowData() {} |
Object. An object containing the row data.
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; }); |