I want each node to drag and drop in this component.
I'm wondering how we are able to add "drag and drop" function.
Do you have any ideas?
If you don't mind, It'd be nice if you could give me how to do it.
I wish I could also get DnD version of GTree....
Best,
Hi ,
You can use ZtreeReactive forge component which has advance features like drag and drop.
https://www.outsystems.com/forge/component-overview/8338/ztree-reactive#:~:text=It%20is%20very%20well%20performant%20and%20highly%20configurable.&text=zTree%20is%20an%20advanced%20jQuery,existing%20zTree%20for%20traditional%20web.
Thanks,
Santosh
Hi Santosh,
Thanks but I already know ztree reactive.
I kind of felt GTree's UI is better than ztree's and that it's sort of easier to use than ztree. So I wanted to add "drag and drop" to GTree component.
I was guessing it could be possible to make drag and drop with Sortable JS Forge component however I'm not sure if my understanding about this is right.
I wonder if we can no longer add this kind of DnD function to GTree....
Hi, Santosh Chanveer
As I said in private message, I have attached my zTreeReactive oml here.
Could you possibly give me some advice about how to implement save logic?
This is just another thing I noticed but , as the below post, it can be hard to save the status of GTree after editting tree data, I guess.
I posted the same question about ZTree but I'm wondering if the same goes for GTree.
https://www.outsystems.com/forums/discussion/81444/is-it-possible-to-save-the-status-of-tree-after-drag-and-drop-nodes/