Menu keeping focus

4 posts, 0 answers
  1. Tim schmidt
    Tim schmidt avatar
    8 posts
    Member since:
    Dec 2009

    Posted 23 Jul 2010 Link to this post

    I have a menu that for some reason is keeping focus when it shouldn't (or at least when I don't want it to).  Here is what is happening.  First I have the menu set to OpenOnClick = True.  I have a bunch of menu ideas, most of which do not have a sub menu, so I what should happen is I click and something happens (for example Clear Screen - clears all the textboxes on the screen).  Here is the problem:  when my screen first comes up and I hover over the menu item, it is highlighted with a light orange background and when I move my mouse off it goes back to the default color.  This eactly what I want to happen.  Now if I click on one of the menu items (ex. Clear Screen) the event that I want to happen fires off and works.  The problem is if I now hover over any of the menu items they get focus (dark orange color) and keep focus even when I hover off the menu.

    What I believe to be happening is the menu thinks it should have a sub menu open so that is why it continues to have focus.  I don't want to set OpenOnClick = False, because the same basic thing happens.  I hover over a menu item and it gets focus, but when I hover off the menu it keeps focus.

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Jul 2010 Link to this post

    Hello Tim,

    Unfortunately the behavior you are seeing is intended and cannot be changed - in order to provide keyboard navigation (move the selection with the arrow keys), the menu items get the focus when they are activated (when ClickToOpen is true - on click, otherwise - on mouse over). We are considering changing this behavior, or at least allowing the developers to disable it with a property, but to my regret this could happen after Q2 2010 SP1 at the earliest.

    Greetings,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Tim schmidt
    Tim schmidt avatar
    8 posts
    Member since:
    Dec 2009

    Posted 26 Jul 2010 Link to this post

    ok.  Well is there anything I can do/say to help get this bumped up the list? Because right now if I have ClickToOpen = True or False, the menu doesn't act the way it needs to for my app.

    In the mean time... When I click on the menu, it sets the focus and "opens" the submenu and I found if I click the smae menu option again it starts to act the way I want again.  So my question is, is there any way in code to close the submenu or envoke a click event so the menu thinks it was manually clicked?  So basically what would happen is the user clicks the menu item, which fires off my click event, in my click event I raise some event or set some property to make the menu item think it has been clicked again...
  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 29 Jul 2010 Link to this post

    Hello Tim,

    Unfortunately RadMenu does not include API for opening/closing the sub items.
    I added your request for changing the behavior of the items when the ClickToOpen property is set to True and you can follow its status here.

    All the best,
    Rosi
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top