Search
DomRenderer.refreshRows Method
See Also
 






Implement this method in a derived class to handle re-rendering of a row range.

Namespace: MindFusion.DataViews
File: DomRenderer.js

 Syntax

JavaScript  Copy Code

function refreshRows (index, count)

 Parameters

index

Number. The start index of the range.

count

Number. The length of the range.

 Example

The 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