Move node from code

2 posts, 0 answers
  1. Curtis
    Curtis avatar
    5 posts
    Member since:
    Sep 2012

    Posted 20 Feb 2014 Link to this post

    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
  2. Curtis
    Curtis avatar
    5 posts
    Member since:
    Sep 2012

    Posted 20 Feb 2014 Link to this post

    Nevermind, I was changing the parent in the database and never in the bound object.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top