Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 26, 2007 04:11
open dhtmlx forum
Drag row to empty grid

I have two grids on a same page and one grid is emtpy. When I try to drag a row from a grid that has data to a grid that is emtpy, it will not fire off the dropped event. Is there a work around for this problem?

Thanks
Answer posted on Nov 26, 2007 07:14
Unfortunately the problem can't be reconstructed locally, the existing samples ( for example http://dhtmlx.com/docs/products/dhtmlxGrid/samples/drag_n_drop/drag_grid.htm ) works correctly.
The only difference between events for empty grid and grid with data, that in case of drag on empty space or on header - the targetID will be "undefined"

If problem still occurs for you - please provide any kind of sample where problem can be reconstructed.
Please beware that earlier versions of grid - 1.2 and start build of 1.3 not supported drag to empty space
Answer posted by Stanislav on Nov 26, 2007 07:15
Also similar situation can occur if you enabled drag and drop after grid.init command