Whenever i drag and drop the tree gets a + icon near it . Esp when the tree has one child . I want that to open out so that all the child are shown … Can anybody help me out on how to change the behaviour
For dhtmlxTree - the simplest way to achieve such functionality will be to use next code
tree.attachEvent(“onDrop”,function(id){
tree.openItem(tree.getParentId(id));
});
as result after each drag and drop operation the target element will be expanded
In case of dhtmlxTreeGrid solution may be similar , but will use setDropHandler instead of attachEvent