This is a migrated thread and some comments may be shown as answers.

Move node from code

1 Answer 75 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Curtis asked on 20 Feb 2014, 04:16 PM
I have a treeview that is bound to an ObservableCollection<INode>. I use hierarchical templates to show the children property of each node when expanded. I have drag and drop working fine. However, I also want the user to be able to move nodes by right-clicking, opening a context menu, and choosing "Move Selected". This would move the selected leaf nodes to the different parent that was right-clicked. I have it working so that the ObservableCollection<INode> is updated and it updates the database, but the RadTreeView control does not update until the application is reloaded.

My question is how can I make the UI update after moving a node in code-behind.

Thanks,
Curtis

1 Answer, 1 is accepted

Sort by
0
Curtis
Top achievements
Rank 1
answered on 20 Feb 2014, 04:29 PM
Nevermind, I was changing the parent in the database and never in the bound object.
Tags
TreeView
Asked by
Curtis
Top achievements
Rank 1
Answers by
Curtis
Top achievements
Rank 1
Share this question
or