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 🙂
solved Event “onClick” on treeview DHTMLX