Problem when selecting TreeViewItem

4 posts, 0 answers
  1. Markus
    Markus avatar
    4 posts
    Member since:
    Aug 2011

    Posted 06 Sep 2011 Link to this post

    Hi All,

    i have encountered a problem when selecting a TreeViewItem. The Focused Item seems not to be the selected Item. I bound the TreeView to a list of entities and added hierarchical datatemplates for displaying them.

    • node1
                 node1a
                 node2a
    • node2
                node2a
                node2b

    When i now open node2 and select node2a the focus is set to node2a, but the selected item will be node1a. This happens only if i opened the node1 before. I used the Microsoft TreeView instead and expected the same result but this one seems to work correct. Has somebody had a similar problem before ?

    Greetings Markus
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 08 Sep 2011 Link to this post

    Hi Markus,

    I was not able to reproduce the issue you describe. Please take a look at the attached project which tries to simulate the scenario you describe and let me know if I am missing anything. I'd be glad to further assist you.

    Best wishes,
    Kiril Stanoev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Markus
    Markus avatar
    4 posts
    Member since:
    Aug 2011

    Posted 08 Sep 2011 Link to this post

    Hi Kiril,

    The File you attached seems to be corrupted. The Project I attached in the ticket i sent today did not reproduce my issue ?

    Best wishes Markus
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 08 Sep 2011 Link to this post

    Hi Markus,

    Thanks for the clarification. When I was reading the support ticket I did not see the attachment. Anyway, now I see that you actually give 1 collection (listOfChildNodes) as an itemssource to 3 different nodes (Node1, Node2 and Node3). Currently there is an issue with the selection of RadTreeView in this particular scenario and we are aware of it. Here is the PITS item. For the moment we are not aware of an existing workaround.

    If your scenario does not necessarily require that 1 collection is passed as an ItemsSource to more than 1 RadTreeViewItem, this might be an option for you. The other is to have 3 different collections and sync them.

    Let me know what you think.

    Kind regards,
    Kiril Stanoev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top