Hi,
Can you give me and example of removing nodes from your RadTreeView as the code snippet below generates an error, at line
Requirements: After Editing a node, if it does not meet a certain criteria, then delete the node.
Note: I am using the RadTreeView with LoadOnDemand
Best
P
Can you give me and example of removing nodes from your RadTreeView as the code snippet below generates an error, at line
| Parent.Items.Remove(DirectCast(e.Source, TreeViewItem)) |
| Private Sub trvListEvents_Edited(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.RadTreeViewItemEditedEventArgs) Handles trvListEvents.Edited |
| If e.OldText <> e.NewText Then |
| ActionMenuRequest(DirectCast(e.Source, RadTreeViewItem)) |
| Else |
| Dim Parent As RadTreeViewItem = Me.CurrentTreeViewItem.Parent |
| Parent.Items.Remove(DirectCast(e.Source, TreeViewItem)) |
| End If |
| End Sub |
Requirements: After Editing a node, if it does not meet a certain criteria, then delete the node.
Note: I am using the RadTreeView with LoadOnDemand
Best
P