hi ,
i have 2 dhtmlxGrid .
i want drag item from grid one to grid two . this worked !
but
i don’t want drag item from grid two in grid one . i can’t execute this .how i can disable drop i one grid ?
You can attach onDrag event and return false from it to block d-n-d
mygrid.attachEvent(“onDrag”,function(sid,tid,sobj,tobj){
if (sobj == mygrid2) return false; //block drag from grid 2
});
helpful !!
thanks for help.
when i read this code , i think “This Code Worked !” , but when i do execute that , NOT Worked .
even i do deleted “if (sobj == mygrid2)” , but NOT Worked .
Please help me.
Please check attached sample, it uses the same technique and works as expected.
sample_drag.zip (1.46 KB)