Search
ArrayModel.getRowData Method
See Also
 






Gets the values at the specified row index.

Namespace: MindFusion.DataViews
File: ArrayModel.js

 Syntax

JavaScript  Copy Code

function getRowData (row)

 Parameters

row

Number. The row index.

 Return Value

Object. An object containing the values at the specified row index.

 Example

The following code gets the data at the last grid row. It gets the biggest key in the grid and assigns a new ndex to the row data - with 1 larger than the current max index:

JavaScript  Copy Code
var data = grid.model.getRowData(grid.model.rowCount);
var maxIndex = grid.model.getMaxKey();
data.index = ++maxIndex;

 See Also