Hi,
We have a dropdown control and a fusion chart at bottom of the dropdown .On change of dropdown fusion chart should be updated accordingly these all controls are present in one update panel.
LayOutLooks like this:
UpdatePanel1
Drop Down List
Fusion chart which is dynamicall constructed on the basis some input critera following are the steps:
1)Construct xml file with input critera(This is working fine I have verified)
2)
if (IsPostBack)
{
//when a ajax call is made we use RenderChartHTML method
output = FusionCharts.RenderChartHTML("Charts/ScrollArea2D.swf", FileName, chartHolder.ID, 350,450, false, false);
}
else
{
//When the page is loaded for the first time, we call RenderChart() method to avoid IE's 'Click here to
output = FusionCharts.RenderChart("Charts/ScrollArea2D.swf", FileName, "", chartHolder.ID, GPIUIConstants.GPI_CONST_FUSIONCHARTS_WIDTH, GPIUIConstants.GPI_CONST_FUSIONCHARTS_HEIGHT, false, false);
//chartHolder.InnerText = cabinetId;
}
chartHolder.Controls.Clear();
//Add Litaral control to Panel which adds the chart from outPut string
chartHolder.Controls.Add(new LiteralControl(output));
Here chartHolder is a dynamically created div element.
Problem here is when we change dropdown fusion chars are not rendered with latest data every time eventhough the file has got the latest data.
Please let me know if you need more infomation regarding this.
Thanks
Dasu.G