I put a chart control in an update panel. When the user clicks on the chart, it should change some other things in the update panel. But the entire page is refreshing, which is bad. Other controls in the update panel behave correctly, but not the chart.
I do add most of the chart attributes to the chart from code in the code-behind, even the "postback" attribute. Still, it should work. Has anyone else run into this?
I found the answer. The chart does javascript _dopostback, and that didnt work because I was using "clientidmode" of static. Apparently keeping the ID accessible by my own javascript interferes with asp.net mechanisms of ajax.
Marked as answer by Chen Yu - MSFT on Nov 30, 2012 08:26 AM
gidmeister
Member
112 Points
134 Posts
asp:chart behaves badly in update control
Nov 25, 2012 03:30 PM|LINK
I put a chart control in an update panel. When the user clicks on the chart, it should change some other things in the update panel. But the entire page is refreshing, which is bad. Other controls in the update panel behave correctly, but not the chart. I do add most of the chart attributes to the chart from code in the code-behind, even the "postback" attribute. Still, it should work. Has anyone else run into this?
Thanks
gidmeister
Member
112 Points
134 Posts
Re: asp:chart behaves badly in update control
Nov 25, 2012 06:58 PM|LINK
I found the answer. The chart does javascript _dopostback, and that didnt work because I was using "clientidmode" of static. Apparently keeping the ID accessible by my own javascript interferes with asp.net mechanisms of ajax.
Chen Yu - MS...
All-Star
21829 Points
2513 Posts
Microsoft
Re: asp:chart behaves badly in update control
Nov 30, 2012 08:28 AM|LINK
Hi,
Glad to hear that. If you have any questions about ASP.NET, welcome to ASP.NET forum.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store