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

RadContextMenu closes when I click on an item after a submenu is shown

9 Answers 244 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Francois Lamy
Top achievements
Rank 1
Francois Lamy asked on 03 May 2013, 01:59 PM
I have a situation where I have a context menu with a submenu on it.  When I hover over the submenu header, it shows the submenu properly.  If I then leave the submenu and hover over a different item on the context menu that does NOT have a submenu, the submenu will hide after a short delay.  If I click on the second item (the one that does NOT have a submenu) BEFORE the first submenu is hidden (i.e. before it actually goes away), then the entire context menu closes.

I don't want that behavior, I want it to execute the command tied to the second menu item.

It is doing this because it thinks that the click event is occurring outside the context menu and therefore the context menu needs to close.

Any ideas here?

9 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 07 May 2013, 07:08 AM
Hi Thomas,

When RadMenuItem is clicked RadContextMenu closes. This is the default behavior.
If you want to keep the context menu open then you have to set StaysOpenOnClick=True for all menu items that will keep the menu open when clicked.

Let us know if this helps you.

Regards,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Shruti
Top achievements
Rank 1
answered on 23 Jul 2013, 06:47 AM
Hi
I need to use RadContext Menu . But i have a slight difference in requirement regarding the display of the menu.
I need that the submenu items be displayed on the top of the menuItems i.e. on click of a menu item, the Main menu is hidden and the sub menu gets displayed on top of it...It will be sort of a layered menu. Can u please help me with that? It is kind of an urgent requirement.

Thanks in advance
Shruti
0
Rosen Vladimirov
Telerik team
answered on 23 Jul 2013, 10:29 AM
Hi Shruti,

May I ask you to share more details for your scenario? With RadContextMenu you are unable to hide top level items and show only their children, but if you share your idea, we could suggest you some other controls that may be helpful for you.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Shruti
Top achievements
Rank 1
answered on 23 Jul 2013, 10:52 AM
Hi Rosen,
I can explain it through an example.
I have a context menu with Menuitems item1,item2,item3,item4 each having a back button as an icon.
The submenu items for menu1 are item1.1,item1.2,item1.3 ,  submenu items for menu2 are item2.1,item2.2,item2.3 , submenu items for menu3 are item3.1,item3.2,item3.3
My requirement is that on click of menuItem  item1  :
the back button gets enabled
item2,item3 and item4 are hidden and the submenu for item1(item1.1,item1.2,item1.3) are displayed on top.
i.e. item1.1,1.2,1.3 would be displayed where item2,item3,item4 were displayed initially.
when i click the back button, the mainmenu with menuitems item1,item2,item3,item4 is displayed again hiding item1's submenu
Please suggest something for the same.

Thanks
Shruti
0
Rosen Vladimirov
Telerik team
answered on 26 Jul 2013, 11:39 AM
Hello Shruti,

You can try our RadBreadCrumb control. Here is a link to our demos. You can find more information in our help. Could you try it and inform us if you have any problems or concerns?

I'm looking forward to hearing from you.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Shruti
Top achievements
Rank 1
answered on 02 Aug 2013, 10:59 AM
Hi Rosen,

I tried the RADBreadcrumb which you had suggested.But this is not exactly my requirement.
Can you suggest me something where the submenus are displayed as a dropdown below the main menu item.

Thanks in advance.Really appreciate the time you are spending on my queries.

Shruti
0
Shruti
Top achievements
Rank 1
answered on 02 Aug 2013, 11:46 AM
Hi Rosen ,
http://demos.telerik.com/aspnet-ajax/menu/examples/appearance/iphonemenu/defaultcs.aspx

Please check this link...This is the exact menu which i need in my WPF application.
0
Rosen Vladimirov
Telerik team
answered on 07 Aug 2013, 07:41 AM
Hello Shruti,

In order to achieve this, you can use RadListBox and RadTransitionControl. We have implemented a sample application for you. Please check it and inform us in case you have any problems or concerns.

You can read more information about RadTransitionControl here.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Shruti
Top achievements
Rank 1
answered on 12 Aug 2013, 08:18 AM
Thanks Rosen. This is what is i was looking for.
Thanks a lot for your help.

Shruti 
Tags
Menu
Asked by
Francois Lamy
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Shruti
Top achievements
Rank 1
Rosen Vladimirov
Telerik team
Share this question
or