Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ravi on Jul 29, 2008 09:45
open dhtmlx forum
Hi, I checked the sample file. It fixed the problem, where I can now drag a row between a group header and its first child and it works correctly. But, if you drag a row and drop it between the grid's main header and first row, it inserts it at the very bottom and not as the first row. Let me know if I am getting anything wrong. Thanks again, Ravi


Answer posted on Jul 30, 2008 05:03
Problem confirmed and fixed. Fix will be available as part of next release.
( updated js file sent by email )
Answer posted by Ravi on Jul 30, 2008 19:48
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
Answer posted by Support on Aug 01, 2008 01:36

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
       http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Managed_Drag_and_Drop.html#grid_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. 

Attachments (1)
Answer posted by Ravi on Jul 31, 2008 18:24
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

Answer posted by Support on Aug 01, 2008 01:35

>>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.