Adds a row to the backing array.
Namespace: MindFusion.DataViews
File: ArrayModel.js
SyntaxJavaScript
Copy Code
|
|---|
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.
ExampleThe 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
Copy Code
|
|---|
function onAddClick(sender) var data = grid.model.getRowData(grid.model.rowCount); grid.addRow(data).then((newRow) => |
See Also