Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard on Jun 13, 2008 11:51
open dhtmlx forum
previously submitted error

hi,

i just submitted an error in relation to the row showing red on drag and drop when returning false on the drag handler

i have noticed that this error only occurs when you have an alert message before you return false

thanks
Answer posted by Support on Jun 16, 2008 05:35
The red color - is color of marked row, it will disappear only after d-n-d process finished ( after alert will be clicked )
The auto-open functionality initiated by dragging above item, and if d-n-d not finished in nearest time - it will be opened. In you case alert creates a pause, because of which auto-opening not prevented.
The simplest solution - call alert through setTimeout
    window.setTimeout(function(){
       alert(any);
    },1)
in such case you message will appear only after d-n-d finished. ( or use onDrop event instead of onDrag. onDrop event occurs after d-n-d process fully finished )
Answer posted on Jun 16, 2008 05:45
ok thanks