Ajax and Highcharts

Feb 24, 2011 at 5:31 PM



I tried to use this library and I have it working.

However, if I try to use it with Ajax (the AjaxControlToolkit) it doesn't work anymore.

Any idea?




Apr 23, 2011 at 3:49 PM

I have same issue.. I think it is about javascripts registered from code behind. You must register javascript for a spesific control that inside your ajax updatepanel, not to the Page.. 

When registering control javascripts to the Page, ajax update panel updates the controls inside the update panel. So, javascripts not working.

If you changethis line:

Page.ClientScript.RegisterStartupScript(GetType(), "chart_" + ClientID, script, true);


ScriptManager.RegisterClientScriptBlock(IDofPanelOrControlCoversTheControl, typeof(Panel)
, "chart_" + UniqueID , "alert('javascript to register..');", true);


I did not try for highcharts source codes, but it works for my applications which has some Ajax + JavaScript functionalities..