Skip to content Skip to sidebar Skip to footer

Event "onclick" On Treeview Dhtmlx

I have a treeview attached in a cell of a DHTMLX (pro) layout. myTreeView = myLayout.cells('a').attachTreeView({ xml:'/LRF/XMLWeb/ProcessDescriptor/descriptor/PROJECT/tree.xml

Solution 1:

Ok so here is my solution using "onSelect" instead of "onClick" event :

myTreeView.attachEvent("onSelect", function(id){
                    pid = myTreeView.getSelectedId();
                    dhtmlx.alert(pid);
                    });

With this event i can now populate my grid from my tree with adding :

myGrid.clearAll();
myGrid.load("/LRF/XMLWeb/ProcessDescriptor/descriptor/PROJECT/grid.xml");

That's it :)

Post a Comment for "Event "onclick" On Treeview Dhtmlx"