Search
Grid.isRowVisible Method
See Also
 






Checks if the row at the specified index is currently visible.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function isRowVisible (row)

 Parameters

row

Number. The row index.

 Return Value

Boolean. True if the row is visible, otherwise false.

 Example

The following method outlines the row if the value of its key is bigger than 100 and brings the focus into its first cell:

JavaScript  Copy Code

function outlineRow(rowIndex)
{
  var rowKey = grid.getRowKey(rowIndex);

  if( rowKey > 100)
  {
     var rowELement = grid.getRowElement(rowIndex);
     rowElement.outline = "#4CAF50 solid 2px";
    
     if(!grid.isRowVisible(rowIndex))
        grid.focusCell(rowIndex, 0);
      
  }
}

 See Also