Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by XB on Jan 28, 2009 13:43
open dhtmlx forum
Between Grids drag drop error

Hello,

I have a page that displays two grid side by side (left and right), both allowing drag and drop, on the right side grid, I also allow edit grid, when I am in stage 1 when edit take place (so I double click or hit F2 for one of the cell and the cell is enabling edit) I highlight the content of that cell using mouse, but without lifting the left button of the mouse and move the cursor to the left grid, and error occurs in IE showing '_childIndexes' is null or not an object, this seems like an internal error where the error is created when an item other than the actual row of a grid is being dragged into another grid.

The grid doesn't seem to cause much problem, but is there a way to make this error go away? (other than disabling drag and drop)

Thanks
Answer posted by Support on Jan 29, 2009 05:56
You can use next code

grid.attacEvent("onEditCell",function(stage){
   if (stage==1) mygrid.enableDragAndDrop("temporary_disabled");
   if (stage==2) mygrid.enableDragAndDrop(true);
   return true;
})

It will disable d-n-d while cell is in edit state and re-enable after cell editor closed. 

( the issue can't be reconstructed locally , so if it occurs for latest version of dhtmlxgrid - please provide any kins of sample wher it can be reconstructed, you can send such info directly to support@dhtmlx.com ) 
Answer posted by XB on Jan 29, 2009 07:12

I tried the solution, but the problem still appears,

I've sent an email to support about the steps to reproduce the problem, please check.

XB

Answer posted by Support on Feb 02, 2009 09:57
There was a separate problem, which was confirmed and fixed. 
Fix will be released as part of next build.