BiGrid2DataModel

This data model is to be used with BiGrid2. It uses the BiGrid2Row and BiGrid2Cell to provide the data

This class extends BiTreeViewDataModel and therefore all methods and fields available for BiTreeViewDataModel are also available for BiGrid2DataModel .

Constructor

new BiGrid2DataModel ( oGrid )

Parameters

NameTypeOptionalDefaultDescripton
oGridBiGrid2Optional grid component

Properties

NameTypegetsetDescripton
treeViewBiGrid2checkedcheckedThe tree view the data model is acting on

Methods

NameDescription
getHasIconOverridden from BiTreeViewDataModel. By Default, all cells in column 0 will have an icon.
getRowAtThis returns the row at y
insertRowAtInserts a new row
removeRowAtRemoves the row at the given row index

Events

NameTypeBubblesDescripton
rowcountchangedBiTreeViewDataModelEventThis event happens after the number of rows has changed.

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

getHasIcon

Overridden from BiTreeViewDataModel. By Default, all cells in column 0 will have an icon.

Syntax

object.getHasIcon ( x,y )

Parameters

NameTypeOptionalDefaultDescripton
xNumberColumn
yNumberRow

Return Type

boolean Return true if cell should have icon visible. False otherwise.

getRowAt

This returns the row at y

Syntax

object.getRowAt ( y )

Parameters

NameTypeOptionalDefaultDescripton
yNumberThe index of the row

Return Type

BiGrid2Row

insertRowAt

Inserts a new row

Syntax

object.insertRowAt ( obj,y )

Parameters

NameTypeOptionalDefaultDescripton
objBiGrid2RowThe object describing the data
yNumberThe index of the row where to insert

Return Type

void

removeRowAt

Removes the row at the given row index

Syntax

object.removeRowAt ( y )

Parameters

NameTypeOptionalDefaultDescripton
yNumberthe index of the row to remove

Return Type

void