Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Add/Delete a node to/from a databound tree
posted

I'd like to add the capability to insert/delete nodes from a databound tree.

What is the best approach? Is there support in the tree to add/delete nodes, or should I manipulate the data source?

 

 

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    ocajuno said:
    Is there support in the tree to add/delete nodes, or should I manipulate the data source?

    The control supports node deletion through the user interface (via the UltraTree.Override.AllowDelete property) and programmatically adding/removing nodes (the control and each node therein exposes a Nodes collection which exposes Add and Remove methods). However, this functionality is intentionally switched off when bound to a data source, so yes, you should manipulate the data source instead.

Children
No Data