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
Thank you for your answer, now I see what is your custom logic.
Since XamDataTree nor expose a functionality that can prevent single nodes from being deleted, neither contains an indicator which shows if the current node can be deleted, the way to remove a single node is to delete the corresponding record from your data source (please notice that this data source should implements INotifyPropertyChange).
After the research done,this functinality has been determined to be a new feature request. I have sent your feature request directly to our product management team. Our product team chooses new feature requests for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this feature request is FR14184.
If you would like to follow up on your feature request at a later point, you may contact Developer Support management via email. Please include the reference number of your feature request in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Infragistics, Inc.
thank you for your answer and sending a feature request.
Sincerely