Implementing a RadContextMenu click event in javascript

2 posts, 0 answers
  1. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 10 Aug 2012 Link to this post

    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
  2. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 10 Aug 2012 Link to this post

    Got it working. What I needed to do was use the args.get_item().get_text() method.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top