GridTree


Name spacerialto.widget
FILErialtoEngine\javascript\components\controls\gridTreeview.js
NAMEGridTree
INHERITSgrid
VERSION0.86
update
DESCRIPTIONThis 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


NameTypeDescriptionDefault
titleFirstColStringtitle of the first col that containt the treenodes
widthFirstColintwidth of the first col that containt the treenodes220

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


MethodArguments listReturn valueInheritsTo redefine
addNodeLineobject objParLineNode objectnono
onrefreshlineobject lineNode linebooleannoyes
fillGridArray of array TabDatajavascript array that contain each linenode creatednono

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"]]);