Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Djef ADAM on Dec 21, 2009 14:03
open dhtmlx forum
gridToGrid

Hello,
thanks for your products i like them very well. I want to do something in drag and drop :

I have 2 sources grids and 1 target grid, the sources grids :
1st- Grid1 has 6 columns. (copy only the columns 2,3,4)
2nd - Grid2 has 3 columns. (all columns)

the target grid has 9 columns, so i want to copy (or drag) the row (3 values) from grid1 to the targetgrid in the 2th,5th and 6th column and in the same row, drag all values from grid2 into the targetgrid at the last 3 columns (7,8,9). So to have one row with the choosen values from grid1 and grid2.

best regards.
Answer posted by dhxSupport on Dec 22, 2009 01:43
Drag-and-drop between grids can be controlled with drag-n-drop events and "moveTo" methods. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:drag_and_drop
http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:toc_managed_drag_and_drop
Answer posted by Djef ADAM on Dec 24, 2009 11:21
Hello again and thanks for reply. But i can't find in your answer what i want to know. When dragging or moveRowTo() a row from sgrid to tgrid a new row is created in the tgrid, and i tried to move to the same row by ''mygrid1.moveRowTo(rId, sid, "move","sibling" , mygrid1, mygrid2); but i still have the same problem. Every copy or move to the target grid is issued by a creation a new row. I don't know how to block default drag and drop or to control landing process.
I really need to find a solution. Thanks again.
Answer posted by dhxSupport on Dec 28, 2009 02:41
Regarding this issue please contact directly support@dhtmlx.com and provide your ref ID