Bug with Application Menu

2 posts, 0 answers
  1. George
    George avatar
    8 posts
    Member since:
    Nov 2010

    Posted 22 Jul 2013 Link to this post

    I'm using the application menu to display menu options to create certain items in my application. Based on the user's role I'm hiding certain menu options. Here's what it looks like:

    New -> User (Get's hidden when role doesn't have authority)
            -> Role (Get's hidden when role doesn't have authority)
            -> Item 1
            -> Item 2

    The problem is when using the OnClientApplicationMenuItemClicking event and the first two items are hidden server side and the user clicks the "Item 1" menu item all of the client side functions think "Item 1" is actually "User".

    function OnRibbonApplicationMenuClicking(sender, eventArgs) {
        // Get the attributes for the button that was clicked
        var selectedButton = eventArgs.get_item();
    }

    "selectedButton" ends up being the "User" menu item instead of the "Item 1" menu item. 

  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 26 Jul 2013 Link to this post

    Hi George,

    I'm not quite sure I understand how to reproduce the issue. Can you elaborate on this statement:
    "The problem is when using the OnClientApplicationMenuItemClicking event and the first two items are hidden server side and the user clicks the "Item 1" menu item all of the client side functions think "Item 1" is actually "User"."

    How is this manifested in your code. 
     

    Regards,
    Bozhidar
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top