RadContextMenu attributes adding problem

2 posts, 0 answers
  1. Bilal
    Bilal avatar
    1 posts
    Member since:
    Jan 2013

    Posted 08 Feb 2014 Link to this post

    We are using RadContextMenu in our product.
    I am using Contextmenu within Repeater, The problem I am facing is, I have tried to add client side events in itemdataboud and itemcreated but nothing works.
    I am adding it like:
     contextMenu.Attributes.Add("OnItemClicked","return test1();");

    But the test1 has never fired.
    Note here that I don't care about sender and args parameters.
    Can someone please tell me how to add client side attribute in server side code, although the above statement worked for other radcontrols like RadNumericTextbox.

    Any help will be greatly appreciated, I have tried to find solutions for many hours now but nothing help, please.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Feb 2014 in reply to Bilal Link to this post

    Hi Bilal,

    Please try the following code snippet to achieve your scenario.

    RadContextMenu1.OnClientItemClicked = "Click";

    <script type="text/javascript">
        function Click() {

    Hope this will helps you.
Back to Top