Search
ArrayModel.displayValue Method
See Also
 






Gets the display value of the cell in the the specified position.

Namespace: MindFusion.DataViews
File: ArrayModel.js

 Syntax

JavaScript  Copy Code

function displayValue (row, column)

 Parameters

row

Number. The row index.

column

Number. The column index.

 Return Value

String. The display value.

 Example

The following code gets the display value of all cells in a grid column and paints the background of those, whose value is more than 999, in red:

JavaScript  Copy Code
for(var i = 0; i < grid.model.rowCount; i++)
{
 //the column displays numbers. Length > 3 means the number is > 999
 if(grid.model.dispalyValue(i, 2).length > 3)
 {
         grid.getCellElement(i, 2).style.background = "red"; 
 }
}

 See Also