Adds a row to the backing array.
Namespace: MindFusion.DataViews
File: ArrayModel.js
JavaScript
![]() |
---|
function addRow ([rowData, [index]]) |
Object. The values to add.
Number. The index at which to insert the data. If not specified, the data will be appended to the end of the backing array.
The following sample adds a new row at the end of the Grid rows and moves the cursor there so that the user can start typing data:
JavaScript
![]() |
---|
function onAddClick(sender) var data = grid.model.getRowData(grid.model.rowCount); grid.addRow(data).then((newRow) => |