谷歌饼图(任何图)一个ASP.Net AJAX更新面板内不工作

问题描述:

我现在面临的问题与谷歌饼图和更新面板。
他们是有两个标签面板一个更新面板内的一个标签的容器。
每个选项卡面板包含DIV和脚本绘制谷歌饼图。
当第一次获取页面加载它正常工作。但是,如果我更改选项卡,然后饼图不起作用。
我曾用Sys.Application.add_load(方式)每个选项卡面板内。
我已经使用脚本这是在谷歌播放。
先谢谢了。

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.

的google.load 通话只加载可视化的API,并触发回调在第一时间就只有调用。后续调用的google.load 为同一程序包无可奈何。如果您在图表从你的第二个选项卡中的谷歌装载机回调画,回调将不会触发,所以你需要使用一个回调从更新的过程吧。

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.