Hi Jonas Toft Christensen,
Since the drag and drop is a client-side operation you cannot use server-side code to validate your business rules. You can control the drag and drop behavior by using the following RadTreeNode properties:
- AllowDrop - when set to false the user cannot drop over the node
- AllowDrag - when set to false the user cannot drag the node
Additionally you can cancel the
OnClientNodeDropping event based on your custom logic.
I recommend you move the validation logic on the client-side backed up by server validation as well. You can use the
custom attributes of the nodes to associate additional data.
Regards,
Albert
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.