Hi
Karthik,I believe this issue has to do with the way the grid handles button columns currently. The buttons created in the GridButtonColumn do not have IDs. Therefore the treeview has no target name to send to the server on node drop. I will forward this information on for you.
In the mean time the good news is there are a few work arounds:
Options 1:
The node drop event is fired client side for the buttons in a GridButtonColumn.
So you could get the target button like:
Target will be the HTML Dom element you dropped the tree node on. After you have retrieved the element you could then post the data you need to the server yourself.
Option 2: (easier)
Create a GridTemplateColumn instead of a GridButtonColumn, and then in the template column ItemTemplate, drop a button control. This button control will have a proper ID, and post back on node drop as expected.
It really is possible to drop to any HTML element. As we have just seen the NodeDropped post back only seems to fire if the target element has an ID, but the client side event will always fire.
I Hope this helps you!
Joshua Holt