I would like to use dhtmlxTree as a excell-editor for a column in dhtmlxGrid (i.e., when the cell is double-clicked, a dhtmlxTree should open, where I can pick a node, which is then used as new content for this cell). According to the documentation, when the cell type is ‘stree’, dhtmlxTree is the cell editor. But how do I exactly implement this? How do I couple a dhtmlxTree object to the grid as editor? I haven’t found any example demonstrating this.
Thanks in advance for any help.
Please check
dhtmlx.com/docs/products/dhtmlxG … 1534501000
Basically you need
a) create tree object in default way
tree=new dhtmlXTreeObject(“treeboxbox_tree”,“100%”,“100%”,0);
…
b) define column type as stree
mygrid.setColTypes(“dyn,ed,stree,price,ch,co,ra,ro”);
c) attach tree to specific column of grid
mygrid.setSubTree(tree,2); // 2 - index of column