Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
447
how do I made a server side call in between nodeDropping and nodeDropped event on client side
posted

I have 2 WebDataTrees and I'm trying to move a node from one tree to another tree. When I start dragging the node to another tree I have written some validation logic in nodeDropping event on clientside and I want to update the change in database by making an async call(ex: using PageMethods.UpdateData method). But without the record getting updated in database the source_node is being added under dest_node.

How can I accomplish my task of adding the record in the database in nodeDropping event. If the update into the database is successful, then I want to add the source_node to dest_node. Otherwise, I don't want to add the source_node to the dest_node of other tree and put the source_node where it belongs by calling args.set_cancel(true).