cancel
Showing results for 
Search instead for 
Did you mean: 

Drop multiple TableElements on Tree

0 Kudos

Hi Experts,

I have a short question regarding drag and drop, the tree component and a tablecomponent.

I have implemented so far, that I can drop a single entry from a table component into a treecomponent.

Does anybody know if it is possible to drop multiple tableentries on a tree ?

In case I drop multiple entries, only the first from the list is handled

The event is also not triggered multiple time.

Am I doing something wrong, or is it simply not possible ?

Any input welcome

Best regards, Matthias

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Matthias,

According to the Drag & Drop documentation, only "single table rows can be moved". The DATA parameter in the DropTarget's onDrop event handler will reflect data for the Table's lead selection.

Off the top of my head, you may be able to finagle something where you use a checkbox column in your table to select/deselect the rows to be dragged. OnToggle of the checkbox, you could add (or remove) the row index to a concatenated string that you use as the Table's DragSourceInfo data. For example...

selected_rows = '1|2|5|9'.

Once in the onDrop event handler method, its DATA parameter would be the concatenated string which you could handle as needed.

Cheers,

Amy

0 Kudos

Hi Amy, thanks to the Input and Idea. I will give it a try, and I think this will guide me to the solution !

Best regards, Matthias

Answers (0)