Bruce Lowe
Bruce Lowe

Reputation: 6193

Best way to implement a Drag and Drop List in GWT

I'm looking to implement a simple list with Drag n Drop to reorder the list. However, I may want to add more DnD features in my CMS in the future too.

I've come across 3 options in my searches

Since GWT has evolved over the years, and I've found lots of old articles covering the topic of implementing DnD, I was wondering what the current best way is of implementing DnD in GWT (2.5)

Upvotes: 5

Views: 7472

Answers (3)

jdramaix
jdramaix

Reputation: 1104

I recommend the drag and drop plugin of Gwtquery. It supports many dnd feature out of the box and also support dnd with cell widgets.

Check the examples : http://gwtquery-plugins.googlecode.com/svn/branches/droppable_1_0/demo/GwtSimpleSample/GwtSimpleSample.html

Upvotes: 1

MihaiS
MihaiS

Reputation: 191

If you can use the 'native' support implemented in GWT i recommend stick with this.

Advantages:

  • speed , no extra library requirements

Problems

I used gwt-dnd for a complex UI with lots of Floating windows/panels (similar to desktop environment). I recommend it if you are constrained by HTML5 features or browser support.

Upvotes: 2

appbootup
appbootup

Reputation: 9537

You can keep it simple by sticking to GWT 2.4 feature support if it clears your checklist for now.

1) It will definitely be faster than any other third party stuff.

2) You can always easily update to latest GWT if you come across a bug rather than wait on the third party update.

3) If you really need some additonal feature then you can try out other two options. They are well maintained and have evolved along with GWT. You just need to ensure that performance profiling is done to cover your use cases.

Upvotes: 1

Related Questions