Won't Fix
Last Updated: 06 Jun 2016 09:32 by ADMIN
ADMIN
Danail Vasilev
Created on: 08 Apr 2014 10:02
Category: HtmlChart
Type: Feature Request
0
FIX RadHtmlChart series number is preserved in ViewState within different chart instatiations
Declined with the following reason - chart series are preserved in the ViewState by default. You can do one of the following:
1) Either disable the ViewState of the chart or its container:
ASPX:
<asp:Panel ID="Panel1" runat="server" EnableViewState="false" />
C#:
		RadHtmlChart chart1 = new RadHtmlChart();
		chart1.EnableViewState = false;
2) Or clear the chart Series collection after adding the chart to the page:
		RadHtmlChart chart1 = new RadHtmlChart();
		chart1.ID = "myChart";
		//Add the chart to the page
		Panel1.Controls.Add(chart1);
		//Clear the series after adding the chart to the page
		chart1.PlotArea.Series.Clear();
0 comments