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

Clicking on RadPane tab header in group does not set Focus to the Pane

1 Answer 180 Views
Docking
This is a migrated thread and some comments may be shown as answers.
PaulR
Top achievements
Rank 1
PaulR asked on 15 Jul 2016, 09:59 PM

Create a couple of RadPanes in one RadPaneGroup so that it shows the tab headers. Create another RadPaneGroup with a RadPane.

Put a RadTreeView in the first RadPane, populate with some items.

OK, select 1 of the TreeView items.

1. If you click on the RadPane header in the separate group to activate it, the selected TreeView item will switch to "SelectedUnfocused" state (turns gray).

2. Click back on the TreeView item to focus it again.

3. This time, click on the other RadPane tab in the same group. Click back on the pane tab header with the TreeView. In this case, the TreeView item is still blue (in a SelectedFocused state). But it actually is not "focused". At least not keyboard focused, so it should be gray.

 

Code I found :)

If you look in Docking.PaneHeader.OnMouseLeftButtonDown(), when the user selects a RadPaneGroup, Focus() will be called on that group. That is why the RadTreeViewItem turns gray in the first test.

But no such "Focus()" call can be found when only a RadPane is activated. To fix, I put a Focus() call in RadDocking.ActivePaneChanged event, but you may want to do it differently. :)

 

 

 

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 20 Jul 2016, 12:14 PM
Hello Paul,

You are correct - focus is called for the pane group when mouse down is performed on a pane header.

If you wish to have the tree view item highlighted when the pane with a RadTreeView is activated the approach you've taken is correct.

Regards,
Polya
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Docking
Asked by
PaulR
Top achievements
Rank 1
Answers by
Polya
Telerik team
Share this question
or