The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Essential Suite: 1.6.0.5
It seems that calling TreeControlAdv.Nodes.Remove(node) used to remove the TreeNodeAdv from the tree. Now I have to call node.Parent.Nodes.Remove(node) in order for the node to be removed.
Has the behavior of the tree changed or am I suffering an early "senior moment (at 34)"?
Thanks,
Sean
ASArun Srinivasan Syncfusion Team October 6, 2003 04:56 PM UTC
Hi Sean,
The difference between the two is that the first case will work only if the node is a parent node and it will not work if it is a child node.
//Will work only if the node is a parent node
this.treeViewAdv1.Nodes.Remove(this.treeViewAdv1.SelectedNode);
//Will work irrespective of whether the node is a parent or a child node
this.treeViewAdv1.SelectedNode.Parent.Nodes.Remove(this.treeViewAdv1.SelectedNode);
So you may not be having a Senior Moment after all
Arun