Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by paw on Dec 05, 2007 21:53
open dhtmlx forum
onDrag doesn't seem to work

sir, my code below doesn't alert anything when I drag an item from mygrid1(source object) to mygrid2(target object). I really can't see what's wrong. The table is being displayed, but my alert does not pop up any message. Please help me

mygrid2.attachEvent("onDrag",function()
           {
                alert('dragging');
                return true;
           });
Answer posted by Support on Dec 06, 2007 03:08
Yes, if you have any problem with
    grid.attachEvent("onDrag",funct);
please try to use
    grid.setDragHandler(funct);

Please check attached sample.
Attachments (1)