$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

    Hi
    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

    Hello,

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

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top