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
thank you for your answer and sending a feature request.
Sincerely
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.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc.
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
Hello RalfMenzel ,
I am just checking your progress on the issue.
If you require any further assistance please do not hesitate to ask.
Infragistics
I have been looking through your questions and since xamDataTree control currently does not expose an event which determines if a node has been deleted or not, I can log a new Feature Request for you .
Otherwise, a possible custom approach of indicating the above mentioned behavior is to use a data source that implements the INotifyPropertyChange interface. This means that if you delete a node, that action will affect your data. Therefore a change in the control can be spotted by checking your data for deleted items.
As to your second question, the EditingSettings property exposes an AllowDeletion boolean property ,which indicates if the user can delete nodes. As far as I understood from your message, you have some king of custom logic that determines if a single node is allowed to be deleted or not. That means that our XamDataTreeNode does not expose a property which indicates this characteristic , because it is determined according to your custom implementation.
In order for me to try to help you to define what property to use to indicate if a node can be deleted, it will be helpful if I have information on your custom approach of allowing or restricting this functionality. This said, would you please if possible explain me, or better send me an isolated sample that demonstrates the discussed logic.
I will be looking forward to hearing from you.