# Drag and drop from tree view

**URL:** <https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644>\
**Category:** Ignition\
**Created:** [August 21, 2019, 8:14pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644 "2019-08-21T20:14:15Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 24, 2022, 8:07pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644/28 "2022-10-24T20:07:35Z")

</div>

See this post for a solution which will handle both multi and single selection.

> [@Drag and drop from Tree View to List](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view-to-list/65479/3):
>
> Okay a little bit of work and understanding, and taking @PGriffith's tip, and I was able to accomplish this. This will do multi or single selection, and will handle dragging folders. The drop listener also filters out duplicate paths. You'll want to add this code to a custom function on your Tree View component that you call from the InternalFrameActivated event on the window. def addDragSource(self): from java.awt.dnd import DragSourceAdapter, DragGestureListener, DragSource, DnDConstants …

---

_[View the full topic](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644)._
