I set up a TreeGrid to accept drag and drop on leaf nodes:
...
canDropOnLeaves: true,
canReparentNodes: true,
canReorderRecords: true,
dragDataAction: "move",
...
The intention is that any node (leaf or folder) can being dropped onto any other node (leaf or folder) for reparenting.
All works as advertized. However there is one minor UI issue that causes some confusion. When canReorderRecords is set to true, a 'separator line' appears between each node as the mouse moves. It's difficult to tell which node you are actually dropping onto and in fact the separator line in this instance is counter-intuituive since one would expect the drop node to be the one above the separator line not below it. Technically, canReorderRecords gives a false impression of what we would like to see.
If I turn canReorderRecords off, folderDrop() never gets executed in the cases where both drag and drop nodes share the same parent. Is there any combination of switches I can set to both highlight the actual node the mouse is hovering over as well as insure folderDrop() gets called with the correct arguments?
Thanks for your help,
-paul
...
canDropOnLeaves: true,
canReparentNodes: true,
canReorderRecords: true,
dragDataAction: "move",
...
The intention is that any node (leaf or folder) can being dropped onto any other node (leaf or folder) for reparenting.
All works as advertized. However there is one minor UI issue that causes some confusion. When canReorderRecords is set to true, a 'separator line' appears between each node as the mouse moves. It's difficult to tell which node you are actually dropping onto and in fact the separator line in this instance is counter-intuituive since one would expect the drop node to be the one above the separator line not below it. Technically, canReorderRecords gives a false impression of what we would like to see.
If I turn canReorderRecords off, folderDrop() never gets executed in the cases where both drag and drop nodes share the same parent. Is there any combination of switches I can set to both highlight the actual node the mouse is hovering over as well as insure folderDrop() gets called with the correct arguments?
Thanks for your help,
-paul
Comment