Hi, I checked the sample file. It fixed the problem, whe


Problem confirmed and fixed. Fix will be available as part of next release.
( updated js file sent by email )

So,  now the first row problem is solved. But, I see two new errors.

1) I am not able to drag an independent row between two collapsed group rows.

2) If there is a collapsed group as the last row of the grid, I cannot drag and drop any row independently after that, as in, I want to make it a sibling of the group row. If I try to do, it still adds that row as a child of the preceding group and then it breaks everything. After the operation, the expand collapse functionality is lost.

Thanks for the quick replies.

Ravi


There are two possible modes


a) complex - item set on same level as sibling item
b) complex-next - item set as first chld of sibling item

If you need some different behavior you can use onDrag event to control details
dhtmlx.com/docs/products/dhtmlxG … rid_mandnd



In any mode it possitlbe to drop item at last position - just drag row on empty space of grid below the last row.


Problem with droping item in position after last branch in complex-next mode confirmed and fixed ( was a regression, caused by previous fix, sorry for inconvenience ) Updated js file attached to post.


dhtmlxgrid_drag.zip (6.29 KB)

As you mentioned in your latest answer about the ‘complex’ and ‘complex-next’ behavior, the ‘complex’ one suited more to our needs. But, when we switched to ‘complex’, now all of a sudden we get all the previous errors that you claimed to have been fixed.

First one for e.g., is adding any row as the first row of the grid, with drag behavior set to ‘complex’. The grid gives an error and you cannot do any other operation thereafter.

-Ravi


>>The grid gives an error and you cannot do any other operation thereafter.
Problem not reconstructable, with latest codebase ( file attached previously ) d-n-d in “complex” mode works correctly in described scenario.



Working sample sent by email.