This question is locked. New answers and comments are not allowed.
Hi guys,
I'm using the TreeView in my webform projects. I found that e.dropPosition is undefined in onNodeDrop (NOT onNodeDropped) handler. I need to get this information, or I am not able to know whether I should cancel the drop.
Another quesiton, I want to send a ajax request onNodeDrop to determine this is a valid drop operation (If the server throw an exception, then I need to show some error message and cancel the drop operation). But the ajax request need some time to get result from the server, so I need to let the drop operation to wait for the ajax request done. When the ajax result returns to the client, I can determine whether to cancel or accept the drop operation. How can I do that? Or is there some tricks?
Thanks in advance! :)
UPDATE: Sorry, the title of this post is incorrect. The e parameter in onNodeDropped(e) handler do have the e.dropPostion property. It's the e parametere in the onNodeDrop(e) handler that don't have the e.dropPostion property.
I'm using the TreeView in my webform projects. I found that e.dropPosition is undefined in onNodeDrop (NOT onNodeDropped) handler. I need to get this information, or I am not able to know whether I should cancel the drop.
Another quesiton, I want to send a ajax request onNodeDrop to determine this is a valid drop operation (If the server throw an exception, then I need to show some error message and cancel the drop operation). But the ajax request need some time to get result from the server, so I need to let the drop operation to wait for the ajax request done. When the ajax result returns to the client, I can determine whether to cancel or accept the drop operation. How can I do that? Or is there some tricks?
Thanks in advance! :)
UPDATE: Sorry, the title of this post is incorrect. The e parameter in onNodeDropped(e) handler do have the e.dropPostion property. It's the e parametere in the onNodeDrop(e) handler that don't have the e.dropPostion property.