问题
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.
来源:https://stackoverflow.com/questions/16536118/make-the-rows-of-the-datagrid-draggable-in-gwt