Hello,
why there is no event in XamDataTree, when a node is deleted and before a node is deleted. I have some nodes in a tree which can be deleted and others are not allowed to be deleted. Now I need to know if a user tries to delete a node so I can cancel the deletion in code behind for some nodes.
Without an event, it is not possible. It would also help if it would be possible to set an Property on each node, if this node is allowed to delete but this is only possible for the whole tree.
Any solutions?
Regards
Ralf
Hello RalfMenzel ,
I am just checking your progress on the issue.
If you require any further assistance please do not hesitate to ask.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello Ekaterina,
I retrieve the information if a Node can be deleted or not when I query the node data from a database. I select additional information from the database if there is a stored procedure to delete a specific node and if the logged in user has the appropriate rights to do this.
If there no stored procedure for deleting or the user has no rights I want to disable the deletion of a node.
The nodes in my tree are of different types like a node for Continents, that contains nodes of Countries and that contains nodes of cities. So one user have the rights to delete only cities and another user have the rights to delete countries and cities. And for Continents there is no stored procedure in the database, so no user can delete these nodes.
I hope my explanation helps you to understand what is my problem.
Sincerly