Im working with a load-on-demand using webservice treeview and I have some business rules that I want to run in a drag n drop context. All my business rules are implemented server side.
This means that I want to:
1. Disable drag / drop for specific nodes when first adding the node. I currently do this using the OnNodeDatabound event. This works fine for me, although it would be easier to do it server side. I am calling my load-on-demand webservice where I would like to do the work.
2. Disable drop depending on the node that the source is dragged onto based on server side logic. I have not been able to find out how to cancel the drop based on a server-side condition.
3. Provide the user with necessary GUI & error messages depending on the rules.
An example:
After a drop, I find out that the destination node returns false for a specific rule. This means that I have to cancel the drop and give the user a message "Cannot move node xxx because rule yyy failed"
Can you help me out with this?
This means that I want to:
1. Disable drag / drop for specific nodes when first adding the node. I currently do this using the OnNodeDatabound event. This works fine for me, although it would be easier to do it server side. I am calling my load-on-demand webservice where I would like to do the work.
2. Disable drop depending on the node that the source is dragged onto based on server side logic. I have not been able to find out how to cancel the drop based on a server-side condition.
3. Provide the user with necessary GUI & error messages depending on the rules.
An example:
After a drop, I find out that the destination node returns false for a specific rule. This means that I have to cancel the drop and give the user a message "Cannot move node xxx because rule yyy failed"
Can you help me out with this?