Make the rows of the datagrid draggable in GWT

2019-06-25 03:58发布

问题:

I want to make a datagrid in which rows will be draggable so that a person can move rows up and down by dragging the rows. As row of the datagrid will be get as an element. I know how to make the widgets draggable, but how the rows of the datagrid can be made draggable? I don't want to use any extra plugin or library for achieving this.

回答1:

The only library I know of that support drag&drop with(in) cell widgets is GwtQuery with droppable plugin, see their showcase. I suggest your to give it a try instead reinventing the wheel (or take inspiration from their codebase). See this thread about your CellTable use case.