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

Attach Context Menu to elements on the client

2 Answers 43 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Robert Bross
Top achievements
Rank 1
Robert Bross asked on 14 Jul 2008, 01:46 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 15 Jul 2008, 12:06 PM
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
0
Robert Bross
Top achievements
Rank 1
answered on 15 Jul 2008, 12:12 PM
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!
Tags
Menu
Asked by
Robert Bross
Top achievements
Rank 1
Answers by
Peter
Telerik team
Robert Bross
Top achievements
Rank 1
Share this question
or