Grid & Tree

I am dragging 10 rows from my grid into the tree node.
and its making a call to the function for each of the row

And i am sending an ajax request. and its sending those many ajax requests.

i want to call the function only once,is there any sol

There is no any built-in functionality for such feature.
You still can handle onDrag event to receive info about moved rows, but instead of immediate sending - store such info, and send all info at once, after last row processed.