This is a migrated thread and some comments may be shown as answers.

$find in content page

1 Answer 28 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 06 May 2012, 03:27 PM
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?

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 09 May 2012, 08:26 AM
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.
Tags
Chart (Obsolete)
Asked by
Randy
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or