Cant Change SelectedItem with Mouse Click

2 posts, 0 answers
  1. Karl
    Karl avatar
    12 posts
    Member since:
    Jan 2011

    Posted 12 Apr 2011 Link to this post

    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
  2. Karl
    Karl avatar
    12 posts
    Member since:
    Jan 2011

    Posted 12 Apr 2011 Link to this post

    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
  3. DevCraft banner
Back to Top