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
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.
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!