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

[experience sharing] focus theft

1 Answer 12 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Luc
Top achievements
Rank 1
Luc asked on 08 Oct 2013, 10:41 AM
When clicking on the application menu, in the quick access toolbar or on a ribbon tab, the ribbon bar control steals the focus from whatever control was focused.

I found the following solutions:
- quickaccesstoolbar: ribbon.QuickAccessToolBar.InnerItem.Children[2].CanFocus = false;
- application menu:
   ribbon.RibbonBarElement.ApplicationButtonElement.CanFocus = false;
   ribbon.RibbonBarElement.ApplicationButtonElement.ActionButton.CanFocus = false;
- tabs: tab.CanFocus = false;

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Oct 2013, 06:47 AM
Hello Luc,

Thank you for contacting Telerik Support.

As a control, RadRibbonBar gets focus when some of its child elements have been clicked. It is normal behavior and it is available for other more complex controls (for example RadCommandBar). However, if this behavior is not suitable for some particular cases, I confirm that your approach with CanFocus property is appropriate.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RibbonBar
Asked by
Luc
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or