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

Bug with Application Menu

1 Answer 45 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 22 Jul 2013, 11:03 PM
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. 

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 26 Jul 2013, 07:32 AM
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.
Tags
RibbonBar
Asked by
George
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or