This project is read-only.
1

Closed

Highcharts not working in a repeater

description

highchart is not working in a Repeater.
 
I solved this problem by changing this line:
Page.ClientScript.RegisterStartupScript(GetType(), "chart_" + ID, script, true);
 
to:
 
Page.ClientScript.RegisterStartupScript(GetType(), "chart_" + ClientID, script, true);
 
Scripts must be registered for every item in repeater item collection.
Closed Dec 14, 2011 at 3:15 PM by testmyo
Works after we made the change which bound the control's JS script using the control's ClientID in stead of the ID

comments

onlymukund wrote Jul 3, 2014 at 1:42 PM

Facing this issue with webforms, using literal control inside repeater, but its showing pie chart only once, what to do in codebehind to achieve same.