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

Calling code in SelectedNodeChanging does not hightlight selected node.

2 Answers 71 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Paul Patterson
Top achievements
Rank 1
Paul Patterson asked on 03 Nov 2010, 04:38 PM
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 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 03 Nov 2010, 06:13 PM
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
0
Paul Patterson
Top achievements
Rank 1
answered on 03 Nov 2010, 08:33 PM
@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
Tags
DropDownList
Asked by
Paul Patterson
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Paul Patterson
Top achievements
Rank 1
Share this question
or