Calling code in SelectedNodeChanging does not hightlight selected node.

3 posts, 0 answers
  1. Paul Patterson
    Paul Patterson avatar
    40 posts
    Member since:
    May 2010

    Posted 03 Nov 2010 Link to this post

    We have a scenario where, a user will select a Treeview node in which we perform logic within the SelectedNodeChanging event. Using e.Node we are able to validate that the node being selected is the correct node. However after performing logic in using the SelectedNodeChanging event, the newly selected node does not show as highlighted in the treeview.

    We have validated that the clicked node is in fact the selected node in the treeview, however it simply does not show it as selected by being highlighted. 

    Are we missing something? Is there something else that we have initialize or call to show the node (e.node) highlighted?
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 03 Nov 2010 Link to this post

    Hi,

    An out-of-the-box RadTreeView should show the node as highlighted when you click on it. If you add logic to the SelectedNodeChanging event, then the only reason that the node would not show as selected is if you added e.Cancel = true to the event. This would then deselect the node, and not show as highlighted.

    FYI - im using the latest 2010 Q2 914 version.
    Regards,
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Paul Patterson
    Paul Patterson avatar
    40 posts
    Member since:
    May 2010

    Posted 03 Nov 2010 Link to this post

    @Richard, thanks, but we are not using e.Cancel = true in the event, and we are also using the latest version ( 2010 Q2 914 version). 

    Just realized I posted this under the wrong topic. Sorry about that. It should be for the TreeView topic.

    I've created a thread under the proper TreeView topic... so this thread can be closed.

    Thanks

    Paul
Back to Top