Hi,
setDragText() API in Treegid is not working if we use it during event occurs as below
mygrid.attachEvent(“onDragIn”,function(sid,tid,sgrid,tgrid){
if (mygrid.getUserData(tid,"empty")=="yes"){
mygrid.setRowTextStyle(tid,"background-color:green;");
mygrid1.setDragText("You may drop here", "You may drop here");
}
else{
mygrid.setRowTextStyle(tid,"background-color:red;");
mygrid1.setDragText("You cannot drop here", "You cannot drop here");
}
return true;
});
As i want to set dragText depends on suitation, Please suggest workaround for this requirement
mygrid.attachEvent(“onDragOut”,function(tid){
if (tid){
mygrid1.setRowTextStyle(tid,"");
mygrid1.setDragText("", “”);
}
});