EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: andyj on March 14, 2023, 09:34:28 AM



Title: Drag and drop datagrid addClass tree-dnd-no
Post by: andyj on March 14, 2023, 09:34:28 AM
When drag and drop is enabled in a datagrid, how can you manipulate

Code:
$(sourceRow).draggable('proxy').removeClass('tree-dnd-yes').addClass('tree-dnd-no');
and
Code:
$(sourceRow).draggable('proxy').removeClass('tree-dnd-no').addClass('tree-dnd-yes');

in the datagrid events? (onDragEnter, onDragOver,OnBeforeDrop etc.)

For example, I have a datagrid with grouped rows. While it is not permitted to drop rows to a different group by default, the tick icon is still show rather than the red cross icon when dragging over targetRows in a different group.