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

Implementing a RadContextMenu click event in javascript

1 Answer 48 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Steve Holdorf
Top achievements
Rank 1
Steve Holdorf asked on 10 Aug 2012, 02:06 PM
I have a RadGrid that uses a RadContextMenu. What I need to do is open a different radwindow depending on which RadContextMenu item that is selected. The sample for the RadContextMenu has the OnItemClick calling a server side event to handle the selection of the user's menu choice. From the server side event the code can determine which command was selected by the e.Item.Text argument. Now, I have been opening my RadWindows in the javascript client side code. I could wire this event to a javascript event, I think, but even if this is possible how do I tell which menu item text was selected?

OK, after doing some more searching I found that the OnClientSideItemClick will call the javascript; however, args.get_item().get_value(); returns null?

Thanks,


Steve Holdorf

1 Answer, 1 is accepted

Sort by
0
Steve Holdorf
Top achievements
Rank 1
answered on 10 Aug 2012, 02:26 PM
Got it working. What I needed to do was use the args.get_item().get_text() method.
Tags
Menu
Asked by
Steve Holdorf
Top achievements
Rank 1
Answers by
Steve Holdorf
Top achievements
Rank 1
Share this question
or