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

Problem when selecting TreeViewItem

3 Answers 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 06 Sep 2011, 09:02 AM
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

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 08 Sep 2011, 02:40 PM
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 >>

0
Markus
Top achievements
Rank 1
answered on 08 Sep 2011, 02:54 PM
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
0
Kiril Stanoev
Telerik team
answered on 08 Sep 2011, 03:47 PM
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 >>

Tags
TreeView
Asked by
Markus
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Markus
Top achievements
Rank 1
Share this question
or