Google pie chart (any chart) not working inside an ASP.Net AJAX Update Panel

ⅰ亾dé卋堺 提交于 2019-12-02 18:11:36

问题


I am facing problem with Google pie chart and Update panel. Their is one Tab container inside a update panel which has two Tab panels. Each tab panel contains div and script to plot Google pie chart. when first time page gets load it works properly. but if i change the tab then pie chart doesn't work. i have used "Sys.Application.add_load(methodname) inside each tab panel. i have used script which is in Google play. Thanks in Advance.


回答1:


The call to google.load only loads the Visualization API and fires a callback the first time it is called only. Subsequent calls to google.load for the same package do nothing. If your charts draw in a callback from the google loader in your second tab, the callback will not fire, so you need to use a callback from the update process instead.



来源:https://stackoverflow.com/questions/24390232/google-pie-chart-any-chart-not-working-inside-an-asp-net-ajax-update-panel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!