$find in content page

Thread is closed for posting
2 posts, 0 answers
  1. Randy
    Randy avatar
    3 posts
    Member since:
    Mar 2012

    Posted 06 May 2012 Link to this post

    I have a chart in a contentpage of a masterpage.  When I try to use the $find method in the javascript on the page it comes back as null. I put this
    var chart = $find("<%= myChart.ClientID %>"); in a javascript function on the content page and 
    I just click a button to call it.  But chart comes back as null. What am I doing wrong?
  2. Petar Marchev
    Petar Marchev avatar
    968 posts

    Posted 09 May 2012 Link to this post

    Hello Randy,

    You can use this code:
    var chart = $get("<%=radChart.ClientID%>");

    Kind regards,
    Petar Marchev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top