а

Can you drag n drop from computer folders into dhtmlx tree?


#1

Completely new here so apologies in advance. I have had a quick search through the forums and haven’t found what I’m looking for yet,

I have been asked to create a file explorer for a place who want to implement drag n drop from their computer into the tree.
Is this possible? If so can anyone point me in the correct direction or able to help out?

I have setup the layout through one of the demo’s and my current tree initialisation looks like this:

      var myTree = myLayout.cells("a").attachTree();
      myTree.setImagesPath("codebase/imgs/");
      myTree.enableDragAndDrop(true);
      myTree.setDragBehavior("child", true);
      myTree.enableDragAndDropScrolling(true);
      myTree.attachEvent("onSelect", function(id) { 
          myGrid.filterBy(4,id);
	  return true;
      });

#2

Unfortunately such a feature is not available in the dhtmlxTree.
You may try to use the fileSelector component:
docs.dhtmlx.com/fileselector__index.html