Search
Grid.getRowElement Method
See Also
 






Gets the DOM element of the specified row.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function getRowElement (row)

 Parameters

row

Number. The row index.

 Return Value

HTMLDivElement. the row's DOM element.

 Example

The following method outlines the row that contains the key provided as parameter:

JavaScript  Copy Code

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

  if( rowIndex != null)
  {
    var rowELement = grid.getRowElement(rowIndex);
     rowElement.outline = "#4CAF50 solid 2px";
  }
}

 See Also