Repaints a range of rows.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
function refreshRows (index, [count]) |
Number. The start index of the row range to repaint.
Number. The length of the range.
The following code handles the click event of an HTML button and adds a new row to a Grid instance. The index of the grid is incremented with one from the max index of the current data and the grid is refreshed:
JavaScript Copy Code |
---|
function onAddClick(sender) var data = grid.model.getRowData(grid.model.rowCount); grid.addRow(data).then((newRow) => |