Search
Grid.getRowKey Method
See Also
 






Gets the key of the row at the specified index.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function getRowKey (index)

 Parameters

index

Number. The row index.

 Return Value

Object. The row key.

 Example

The following method outlines the row if the value of its key is bigger than 100:

JavaScript  Copy Code

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

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

 See Also