Categories | Question details Back To List | ||
TreeGrid intialization i am trying to use ... dhtmltreegrid . i am four levels of hirarcehy of values , so thought of including a tree in agrid . could you please say the basic steps for tree grid ibntialization and wat all should be given in an xml file ... i hope i will get the query at earliest. Answer posted by Support on May 07, 2008 03:04 The init of treegrid basically it the same as init of grid, the only difference - one of column types must be "tree" mygrid = new dhtmlXGridObject('gridbox'); mygrid.setHeader("Tree,Plain Text,Long Text,Color,Checkbox"); mygrid.setInitWidths("150,100,100,100,100") mygrid.setColTypes("tree,ed,txt,ch,ch"); mygrid.init(); mygrid.loadXML("test_list_1.xml"); The XML of treeGrid is similar to XML of grid , with only small difference - it may contain nested row tags ( which will be rendered as sub levels inside treegrid ) Please refer to http://dhtmlx.com/docs/products/docsExplorer/doc/dhtmlxxml/index.html#dhtmlx_xml |