59
Views
4
Comments
[GTree] How do you add "Drag and Drop" function to GTree?
gtree
Reactive icon
Forge asset by Pedro Neto
Application Type
Reactive

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,

UserImage.jpg
Tsubasa Yoshikawa

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....





UserImage.jpg
Tsubasa Yoshikawa

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?

MyzTreeReactive.oml
UserImage.jpg
Tsubasa Yoshikawa

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/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.