Custom Drag

Hi

Is there possibility to make only selected region in dataview item to be dragable…, user can drag dataview item for a selected region only…as shown in figure user can drag only when he enters the box area…, outside that he should not able to drag…

Thanks
Seenu

Hi,

you may set onBeforeDrag event handler. If it doesn’t return true, dragging will be blocked. This handler takes drag context object and native event as the arguments. So, using the later argument you may allow drag only for desired area:

dataview.attachEvent("onBeforeDrag",function(context,e){ var target = e.target||e.srcElement; if(....){ return true } return false })