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

Menu keeping focus

3 Answers 68 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tim schmidt
Top achievements
Rank 1
Tim schmidt asked on 23 Jul 2010, 06:57 PM
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.

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 26 Jul 2010, 11:09 AM
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
0
Tim schmidt
Top achievements
Rank 1
answered on 26 Jul 2010, 05:26 PM
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...
0
Rosi
Telerik team
answered on 29 Jul 2010, 12:40 PM
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
Tags
Menu
Asked by
Tim schmidt
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Tim schmidt
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or