BiGrid2Row

This class is used as the data for rows in the BiGrid2 component

This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiGrid2Row .

Constructor

new BiGrid2Row ( oData )

Parameters

NameTypeOptionalDefaultDescripton
oDataObject[]Optional array of objects describing the data for the cells

Properties

NameTypegetsetDescripton
cellsBiGrid2Cell[]checkedThe cells in the row
gridBiGrid2checkedThe grid that the row is part of
isAnchorBooleancheckedWhether the row is the selection anchor for the current selection
isLeadBooleancheckedWhether the row is the lead item of the selection
selectedBooleancheckedWhether the row is selected

Methods

NameDescription
addCellAdds a cell to the row
getCellReturns the cell for the given column
getDataReturns the data at the given column
removeCellRemoves a cell from the row
setDataSets the data for the cell at the given column

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

addCell

Adds a cell to the row

Syntax

object.addCell ( oChild,oBefore )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiGrid2CellThe cell to add
oBeforeBiGrid2CellOptional cell to insert the new cell before

Return Type

void

getCell

Returns the cell for the given column

Syntax

object.getCell ( nCol )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column index for the cell to get

Return Type

BiGrid2Cell

getData

Returns the data at the given column

Syntax

object.getData ( nCol )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column index for the data

Return Type

Object

removeCell

Removes a cell from the row

Syntax

object.removeCell ( oChild )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiGrid2CellThe cell to remove

Return Type

BiGrid2Cell

setData

Sets the data for the cell at the given column

Syntax

object.setData ( nCol,oData )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column index for the data
oDataObjectThe data associated with the cell at the given column

Return Type

Object