on 11-04-2013 3:08 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.