开发者

Ajax TabContainer Rendering Problem

开发者 https://www.devze.com 2023-03-20 18:53 出处:网络
I\'m using Ajax TabContainer with a number of tabs,and IE as browser. On one of the tabs, which is create开发者_如何学运维d and added dinamically, I\'m showing a number of charts.

I'm using Ajax TabContainer with a number of tabs,and IE as browser. On one of the tabs, which is create开发者_如何学运维d and added dinamically, I'm showing a number of charts. Sometimes some of the charts are missing, and after changing tab or selecting the area by mouse, the chart apears.

This problem exists only in production environment, in other words, in development environment there is no problem.

Thanks very much in advance for any help.


I could fix the issue, even though in a tricky way. I forced the tabContainer to redraw after the page is loaded:

setTimeout(function() {
    var tabIndex = $find("<%=TabContainer1.ClientID%>").get_activeTabIndex() ; 
    $find("<%=TabContainer1.ClientID%>").set_activeTabIndex(tabIndex);} 
, 4000)

It does nothing but activating the tab which is already active.

However, I'm wondering if there is any better resolution.

0

精彩评论

暂无评论...
验证码 换一张
取 消