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

10 posts, 0 answers
  1. Thomas Whittaker
    Thomas Whittaker avatar
    34 posts
    Member since:
    Sep 2009

    Posted 03 May 2013 Link to this post

    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?
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 07 May 2013 Link to this post

    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.

  3. DevCraft banner
  4. Shruti
    Shruti avatar
    10 posts
    Member since:
    Jul 2013

    Posted 23 Jul 2013 Link to this post

    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
  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 23 Jul 2013 Link to this post

    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 >>
  6. Shruti
    Shruti avatar
    10 posts
    Member since:
    Jul 2013

    Posted 23 Jul 2013 Link to this post

    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
  7. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 26 Jul 2013 Link to this post

    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 >>
  8. Shruti
    Shruti avatar
    10 posts
    Member since:
    Jul 2013

    Posted 02 Aug 2013 Link to this post

    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
  9. Shruti
    Shruti avatar
    10 posts
    Member since:
    Jul 2013

    Posted 02 Aug 2013 Link to this post

    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.
  10. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 07 Aug 2013 Link to this post

    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 >>
  11. Shruti
    Shruti avatar
    10 posts
    Member since:
    Jul 2013

    Posted 12 Aug 2013 Link to this post

    Thanks Rosen. This is what is i was looking for.
    Thanks a lot for your help.

    Shruti 
Back to Top
DevCraft banner