Hello All,
I'm using datagrid dragDrop extension and question is:
how to avoid drop if some conditions are not OK?
On onBeforeDrop, I try to use code like this:
function onBeforeDrop_my(targetRow,sourceRow,point)
{
$.get('xxxxxx', function(t_data){
// my code to send request to server
alert('result');
},'json');
}
I need to wait for result from server and then, based on server's answer, I can call
return false (to deny drop)
Currently, drop is executed before I see answer from server.
Any idea how to solve this?
Thank you.