B4J Question Drag & drop from one TableView to another

Mikelgiles

Active Member
Licensed User
Longtime User
Is there anyway to do a Drag & drop from one TableView to another? if so, is it too complicated for a newbie to B4J?. I have had success knowing that the drag is happening but not the drop part to the different tableview. I can handle the value from the originating TV but I have found no way to know where to put the data at the target.
 

stevel05

Expert
Licensed User
Longtime User
If you are using the jDragAndDrop or jDragAndDrop2 libraries, you can get the element on which the drop occurred, and from there it's index and insert a new row there containing the dragged data.

A lot depends on the format of your data as to how you actually insert the row.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
@stevel05 This post is a bit old but do you mind clerify the concept of how drag and drop works with the tableview and perhaps listview?
So we mortal apprentices can understand the concept how it all works. :) Thanks
 
Upvote 0
Top