[experience sharing] focus theft

2 posts, 0 answers
  1. Luc
    Luc avatar
    4 posts
    Member since:
    Jul 2013

    Posted 08 Oct 2013 Link to this post

    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;
  2. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 11 Oct 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top