Tree View - Drag and drop function

Ignition 7.9.4 and Java 1.8.0_161-b12

We are using Ignition’s Tree View component and trying to implement drag and drop functionality in same tree view. Our requirement is to pick a step from one location and move to other location in same tree view component.

As there is no drop event on the tree view component, we are trying to develop a python code referring attached java code.
But we are not able to get some events like “canimportdata”, “importdata” and “droplocation” from tree view component.

Java_Code_JTree_DragAndDrop.txt (9.4 KB)

Could you please let us know whether the Ignition’s tree view component is capable to handle such events or we need to explore another ways to achieve this requirement?