Search
GridRenderer.refreshRows Method
See Also
 






DomRenderer.refreshRows override.

Namespace: MindFusion.DataViews
File: GridRenderer.js

 Syntax

JavaScript  Copy Code

function refreshRows ()

 Example

The refresh method of Grid calls the refresh method of its GridRenderer when some of its rows need to be repainted.

JavaScript  Copy Code

var data = grid.model.getRowData(grid.model.rowCount);
var maxIndex = grid.model.getMaxKey();
data.index = ++maxIndex;

grid.addRow(data).then((newRow) =>
{
     editRow = newRow;
     grid.refreshRows(newRow);
     setEditMode();
});

 See Also