$find("RadContextMenu1") undefined

2 posts, 0 answers
  1. Jack Liao
    Jack Liao avatar
    10 posts
    Member since:
    Aug 2009

    Posted 23 Dec 2011 Link to this post

    I am encountered js problem when I use below client API.
     Does anyone can help me? thanks.

    Case 1
    var cMenu = $find("RadContextMenu1");
    cMenu will be undefined!!

    Case 2
    var cMenu2 = $find("<%=RadContextMenu1.ClientID %>");
    this is working.

    but I would like to use the Case 1, due to I can pass the control's id into another function as a paramter in order to do more complex task and this way should be more fexible.

    My developing environment as below.
    VS2008 version 9.0.30729.1 SP
    .NET Framework 3.5 SP1
    telerik version is '2010.1.309.35'

    Thank you!

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Dec 2011 Link to this post


    You can access the ContextMenu using ClientID property as explained in this documentation.
    Client-Side Basics

  3. DevCraft R3 2016 release webinar banner
Back to Top