Implement this method in a derived class to handle re-rendering of a row range.
Namespace: MindFusion.DataViews
File: DomRenderer.js
SyntaxJavaScript
Copy Code
|
|---|
function refreshRows (index, count) |
Number. The start index of the range.
Number. The length of the range.
ExampleThe following code shows you how to implement a custom class that extends DomRenderer and implements the refreshRows method:
JavaScript
Copy Code
|
|---|
| class MyRenderer extends DomRenderer { function refreshRows(index, count) { var model = this.grid.effectiveModel; if (model) { for (var i = index; i <= index + count; i++) { if (this.grid.isRowVisible(i)) //refresh the current row } } } } |
See Also