
GridTree
| Name space | rialto.widget |
| FILE | rialtoEngine\javascript\components\controls\gridTreeview.js |
| NAME | GridTree |
| INHERITS | grid |
| VERSION | 0.86 |
| update | |
| DESCRIPTION | This object create a grid |
The gridTree object has a the same property as the grid except the following where the value are fixed:
switchable=false, lineHeight=23, sortable=false, bNavig=false. Notice that the header parameter doens't include the node column (first one).
CONSTRUCTOR
| Name | Type | Description | Default |
| titleFirstCol | String | title of the first col that containt the treenodes | |
| widthFirstCol | int | width of the first col that containt the treenodes | 220 |
Example:
oTableau = new rialto.widget.GridTree({top:0,
left:5,
height:130,
parent:CADRER,
TabEntete:["lab_ExempleForm30","lab_ExempleForm31","lab_ExempleForm32","lab_ExempleForm13"],
tabTypeCol:[["string",80],["string",200],["date",100],["string",60]],
name:'oTableau',
cellActive:false,
multiSelect:false,
titleFirstCol:"NODE",
widthFirstCol:300});
PUBLIC METHODS
| Method | Arguments list | Return value | Inherits | To redefine |
| addNodeLine | object objPar | LineNode object | no | no |
| onrefreshline | object lineNode line | boolean | no | yes |
| fillGrid | Array of array TabData | javascript array that contain each linenode created | no | no |
addNodeLine
add a LineNode in the gridTree
Parameters:
object objPar:object parameter for linenode constructor
onrefreshline
raise when a line has been update by the server
Parameters:
object lineNode line:line that has been update
The code must be redefine after the instanciation of the component. By default this method does nothing.
fillGrid
this method will fill the grid whith the data
Parameters:
Array of array TabData:contains for each lines the cell value. Notice that the first column represents the text of the node
Example:
oGridTableau.fillGrid([
["nodeText","1933-00001","DUPONT Pierre","05/11/1974"],
["nodeText","1933-00002","DURAND Jule","27/08/1942"],
["nodeText","1933-00003","RENAUT Eric","01/11/1954"],
["nodeText","1933-00004","SMITH John","28/12/1989"]]);