I'm adding a jqplot chart to a page that has a RadTabStrip and a RadMultiPage on it. If I put the target <div> for the plot outside of the RadMultiPage, the chart gets rendered. If I put the target <div> inside the RadMultiPage, however, it doesn't get rendered. This makes me think the JavaScript that's attempting to render the chart in the <div> can't find it.
How should I refer to the <div> in my JavaScript?
Here's how my <div> is defined?
Here's the JavaScript that references the <div> and how it's placed in the RadPageView:
Thanks!
Bryan
How should I refer to the <div> in my JavaScript?
Here's how my <div> is defined?
<
div
id
=
"chartdiv"
style
=
"height:300px; width:600px; border: none;"
></
div
>
Here's the JavaScript that references the <div> and how it's placed in the RadPageView:
<
telerik:RadPageView
ID
=
"Achievement"
runat
=
"server"
>
<
div
class
=
"responseDiv"
><
asp:Label
ID
=
"AchievementLabel"
runat
=
"server"
></
asp:Label
></
div
>
<
script
type
=
"text/javascript"
>
(function ($) {
$(window).load(function () {
var exceedPoints = [['3rd', 218], ['4th', 223]];
var plot1 = $.jqplot('chartdiv', [exceedPoints], {
seriesDefaults: { pointLabels: { show: true } },
series: [{ label: 'Exceed' }],
grid: { drawGridlines: false },
seriesColors: ['#666699'],
title: 'Reading Scores'
});
});
})($telerik.$);
</
script
>
</
telerik:RadPageView
>
Thanks!
Bryan