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

Cant Change SelectedItem with Mouse Click

1 Answer 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 12 Apr 2011, 04:22 PM
I have a TreeView Control with two levels of nodes. 

I am not able to select a child node (using the mouse) without first selecting its parent node. 

For testing purposes, I have hooked up both the PreviewSelectionChanged and SelectionChanged events and neither of these events are fired when selecting a child node. But they do fire if the parent node is selected then the child node.

Here is the xaml for the tree control
<telerikNavigation:RadTreeView x:Name="treeView"
                               IsVirtualizing="True"
                               Margin="0,-6,0,0"
                               Grid.RowSpan="2"
                               Grid.Row="3"                                                                 
                               ItemsSource="{Binding ItemsSource, ElementName=treeDataObjectList}"
                               ItemTemplate="{Binding ItemTemplate, ElementName=treeDataObjectList}" />

Thanks,
Karl

1 Answer, 1 is accepted

Sort by
0
Karl
Top achievements
Rank 1
answered on 12 Apr 2011, 05:32 PM
Hello,

I have resolved this issue. I ended up changing the data types of the child nodes and which made the problem go away. I am not sure why/how that fixed the issue, but it did.

Karl
Tags
TreeView
Asked by
Karl
Top achievements
Rank 1
Answers by
Karl
Top achievements
Rank 1
Share this question
or