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
| Name | Type | Optional | Default | Descripton |
oGrid | | Optional grid component |
Properties
| Name | Type | get | set | Descripton |
treeView | | ![]() | ![]() | The tree view the data model is acting on |
Methods
| Name | Description |
getHasIcon | Overridden from BiTreeViewDataModel. By Default, all cells in column 0 will have an icon. |
getRowAt | This returns the row at y |
insertRowAt | Inserts a new row |
removeRowAt | Removes the row at the given row index |
Events
| Name | Type | Bubbles | Descripton |
rowcountchanged | | This 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
| Name | Type | Optional | Default | Descripton |
x | Number | Column | ||
y | Number | Row |
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
| Name | Type | Optional | Default | Descripton |
y | Number | The index of the row |
Return Type
insertRowAt
Inserts a new row
Syntax
object.insertRowAt ( obj,y ) Parameters
| Name | Type | Optional | Default | Descripton |
obj | | The object describing the data | ||
y | Number | The index of the row where to insert |
Return Type
void
removeRowAt
Removes the row at the given row index
Syntax
object.removeRowAt ( y ) Parameters
| Name | Type | Optional | Default | Descripton |
y | Number | the index of the row to remove |
Return Type
void
