Hi
I saw this issue before but I didn't see any answer that worked for my situation.
The basic issue is i have a radchart within an ajax updatepanel (i have also tried just having it on the page itself) and i want to update the series and refresh the chart but every time i try it just puts reloads with the old series data.
Here are some snipit from the code:
... GET DATA ...
Now I'm not positive if I'm not adding the chart back properly or if I shouldn't be adding it this way at all. But if anyone knows anything that might help me out that would be great. If you need any more information please ask and i'll try and give you what you need.
I saw this issue before but I didn't see any answer that worked for my situation.
The basic issue is i have a radchart within an ajax updatepanel (i have also tried just having it on the page itself) and i want to update the series and refresh the chart but every time i try it just puts reloads with the old series data.
Here are some snipit from the code:
Service_Desk_SQL data; |
RadChart RadChart1; |
ChartSeries empData; |
ChartSeries stackEmpData; |
stackEmpData = new ChartSeries(); |
data = new Service_Desk_SQL(); |
empData = new ChartSeries(); |
RadChart1 = new RadChart(); |
RadChart1.ChartTitle.TextBlock.Text = "Time Breakdown by Employee"; |
RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false; |
RadChart1.RemoveAllSeries(); |
RadChart1.Width = 800; |
RadChart1.Height = 800; |
RadChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal; |
RadChart1.RemoveAllSeries(); |
RadChart1.AddChartSeries(empData); |
if (styleDropDown.SelectedValue.ToString().ToLower() == "stacked %") |
RadChart1.AddChartSeries(stackEmpData); |
UpdatePanel1.ContentTemplateContainer.Controls.Add(RadChart1); |
Now I'm not positive if I'm not adding the chart back properly or if I shouldn't be adding it this way at all. But if anyone knows anything that might help me out that would be great. If you need any more information please ask and i'll try and give you what you need.