Hi,
I have a RadTapStrip and a RadmultiPage: The code is below though I have cut off the RadMultiPage for brevity.
In The code behind which I've left out, again for brevity,In each pageview there is a RadHTMLChart. I read an article that said that all pageviews are loaded automatically unless they are set to Select Only.
The code makes certain tabs invisible under certain circumstances. In this case the first tab is made invisible. so the second tab shows up first. To make sure that the second tab is selected and the associated RadHTMLChart shows up I set the Selectedindex for the RadTabStrip to 1.
RadTabStrip1.SelectedIndex = 1;
I wasn't sure if that was right but I did see that the second tab is highlighted as I hoped when the screen renders; just to be clear this "second" tab is the first tab after the real first tab is made invisible . However the RadHTMLChart associated with that tab does not show up.
I clicked the next tab and the associated RadHtmlChart DID appear for that tab. Then when I went back to click the previous tab that didn't show the radHTMLChart when the screen was FIRST rendered; this time the radHTMLchart DID show up.
To do research I put a line in the codebehind to explicitly activate the RadHTMLChart when the screen FIRST renders,
RadMultiPage1.FindPageViewByID("RadPageView2").Selected = true;
This time when the screen first rendered it DID show the associated radHTMLChart.
I believe I'm missing something in the odd situation where tabs are made invisible.
The code from the aspx file is below:
-------------------------------------------------------------------------------------------
<telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Simple" Visible="false">
<Tabs>
<telerik:RadTab Text="One" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Two" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Three" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Four" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Five" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Six" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Seven" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Eight" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Nine" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Ten" Width="200px"></telerik:RadTab>
<telerik:RadTab Text="Eleven" Width="200px"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip><br />
<telerik:RadMultiPage runat="server" id="RadMultiPage1" SelectedIndex="0">
<telerik:RadPageView runat="server" ID="RadPageView1">
<div>
<telerik:RadHtmlChart runat="server" Width="100%" Height="800px" ID="ChartInsideDiameter" Skin="Metro" PlotArea-XAxis-MinorGridLines-Visible="false"
PlotArea-XAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MinorGridLines-Visible="false">
<PlotArea>
<Series>
<telerik:LineSeries DataFieldY="Field1" Name="">
<TooltipsAppearance Color="White" />
</telerik:LineSeries>
</Series>
<XAxis DataLabelsField="Label1">
<LabelsAppearance RotationAngle="75">
</LabelsAppearance>
<TitleAppearance Text="Date">
</TitleAppearance>
</XAxis>
<YAxis Step=".15">
<TitleAppearance Text="Title1">
</TitleAppearance>
</YAxis>
</PlotArea>
<Legend>
<Appearance>
</Appearance>
</Legend>
<ChartTitle>
</ChartTitle>
</telerik:RadHtmlChart>
</div>
</telerik:RadPageView>
<telerik:RadPageView runat="server" ID="RadPageView2">
<div>
<telerik:RadHtmlChart runat="server" Width="100%" Height="800px" ID="ChartInsideDiameterA" Skin="Metro" PlotArea-XAxis-MinorGridLines-Visible="false"
PlotArea-XAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MinorGridLines-Visible="false">
<PlotArea>
<Series>
<telerik:LineSeries DataFieldY="Field2" Name="">
<TooltipsAppearance Color="White" />
</telerik:LineSeries>
</Series>
<XAxis DataLabelsField="Label2">
<LabelsAppearance RotationAngle="75">
</LabelsAppearance>
<TitleAppearance Text="Date">
</TitleAppearance>
</XAxis>
<YAxis Step=".2">
<TitleAppearance Text="Title2">
</TitleAppearance>
</YAxis>
</PlotArea>
<Legend>
<Appearance>
</Appearance>
</Legend>
<ChartTitle>
</ChartTitle>
</telerik:RadHtmlChart>
</div>
</telerik:RadPageView>