Drag And Drop in TileGrid [message #1860636] |
Tue, 22 August 2023 14:28 |
|
Hello
how to implement a drag and drop in Tile Grid
I wanted to test the code but at any moment it does not enter the breakpoint.
protected TransferObject execDragRequest() {
TransferObject m_Object = (TransferObject)getTileGrid().getSelectedTiles();
return m_Object;
}
protected void execDropRequest(TransferObject transferObject) {
}
Please advise
Anis
[Updated on: Tue, 22 August 2023 14:32] Report message to a moderator
|
|
|
Re: Drag And Drop in TileGrid [message #1860898 is a reply to message #1860636] |
Thu, 07 September 2023 15:21 |
|
Hi Anis
There is currently no support for in-app drag-and-drop. execDragRequest() and execDropRequest() are remnants from the old Swing and SWT UIs. It may be possible that they will be used again in the future, but currently there are no such plans. Implementing drag-and-drop on existing complex widgets is hard, because the drag action might interfere with existing features.
Usually, developers get around this limitation using one of two approaches:
- Create a custom JavaScript widget and implement their own drag-and-drop logic within the widget. This is not a trivial task, but will result in the most freedom.
- Add some menus or buttons that can move elements to the desired location. This covers the frequent case of having a list of elements that need to be rearranged by the user. Simply add a "Move up" and "Move down" menu to your table and your are done. This can be done using standard Scout widgets and you can even easily add keystrokes for power users. It allows for easier testing and helps people with accesibility issues.
Regards,
Beat
|
|
|
Powered by
FUDForum. Page generated in 0.03156 seconds