Attach Context Menu to elements on the client

3 posts, 1 answers
  1. Robert Bross
    Robert Bross avatar
    27 posts
    Member since:
    Oct 2012

    Posted 14 Jul 2008 Link to this post

    Is there a way to do this? I found in the documentation that there is a get_targets method that you can get the targetted items. I am adding items dynamically on the client side that I need to attach the same context menu to.

    Thanks
  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Jul 2008 Link to this post

    Hello Robert,

    RadContextMenu does not support modifying the targets collections on the client. I suggest you use RadAjax and add items to the targets' collection server-side. Let us know if this is an acceptable solution for you and whether you need further help with this solution.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Robert Bross
    Robert Bross avatar
    27 posts
    Member since:
    Oct 2012

    Posted 15 Jul 2008 Link to this post

    Thanks Peter,

    Unfortunately, doing a postback to the server will not work in my case. I think I can get around this by just manually attaching to the R-Click on an item and then just showing the context menu. Not quite as easy just just attaching it to a target, but with everything else that I am getting with your toolset I cant complain! Thanks for your help!
Back to Top