Search
Grid.getKeyRow Method
See Also
 






Gets the row with the specified key.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function getKeyRow (key)

 Parameters

key

Object. The key.

 Return Value

Number. The row index.

 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