BiGridRow

This class represents the rows in BiGrid. Each row contains cells that contains the text to show for the column.

This class extends BiAbstractGridRow and therefore all methods and fields available for BiAbstractGridRow are also available for BiGridRow .

Constructor

new BiGridRow ( [ oData ] )

Parameters

NameTypeOptionalDefaultDescripton
oDataObject[]checkedThis is an array containing the data to be used for each cell. If this argument is left out the cells will be have to be added using addCell.

Properties

NameTypegetsetDescripton
cellsBiGridCell[]checkedReturns the cells for the row.
cssClassNameStringcheckedReturns the CSS class name used for the row.
gridBiGridcheckedReturns the grid component that the row is part of
htmlStringcheckedReturns the HTML for the row and all its cells. This is used by the BiAbstractGrid gridBodyHtml property when drawing the grid.
nextSiblingRowBiGridRowcheckedReturns the next grid row sibling.
previousSiblingRowBiGridRowcheckedReturns the previous grid row sibling.
rowHeaderHtmlStringcheckedReturns the HTML used for the row header for the row.
rowHeaderLabelHtmlStringcheckedReturns the HTML for the text on the row header used for the row. Override this method to define what to show on the row header.
rowIndexNumbercheckedThe index of the row

Methods

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

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

Changing the grid row does not automatically update the grid. The grid will have to be updated manually.

Method Details

addCell

Adds a cell to the row

Syntax

object.addCell ( oChild [ ,oBefore ] )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiGridCellThe cell to add
oBeforeBiGridCellcheckedIf provided, oChild is added before this cell

Return Type

void

getCell

Returns the cell for the given column index.

Syntax

object.getCell ( nCol )

Parameters

NameTypeOptionalDefaultDescripton
nColNumberThe column to get the cell for

Return Type

BiGridCell

getData

Returns the data for the given column index

Syntax

object.getData ( x )

Parameters

NameTypeOptionalDefaultDescripton
xNumberThe column index of the cell to get the data for

Return Type

Object

removeCell

Removes a cell from the row

Syntax

object.removeCell ( oChild )

Parameters

NameTypeOptionalDefaultDescripton
oChildBiGridCellThe cell to remove

Return Type

BiGridCell

setData

Sets the data for a given column index

Syntax

object.setData ( x,oData )

Parameters

NameTypeOptionalDefaultDescripton
xNumberThe column index of the cell to set the data for
oDataObjectThe data to set on the cell

Return Type

void