Make the rows of the datagrid draggable in GWT

ε祈祈猫儿з 提交于 2019-12-10 15:59:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!