Ajax 控件工具包 TabContainer 在至少隐藏一个选项卡时显示多个选项卡
我在使用 AjaxControlToolkit TabContainer 控件时遇到问题。 我提前为没有提交任何代码表示歉意,但由于代码是公司财产,我无权将其发布到任何地方。
问题如下: 我有一个包含 10 个选项卡的 TabContainer,其中一些包含用户控件,一些包含纯 html 和 .net 标记。当我将选项卡编号 5 设置为visible=false 时,奇怪的事情开始发生。选项卡 6 按其应有的方式运行,但选项卡 7 到 10 不仅显示其自身选项卡的内容,还显示其之前的选项卡。即:
当选择选项卡7时,它显示选项卡6和选项卡7的内容,当选择选项卡7时,它显示选项卡7和选项卡8的内容等。前一个选项卡的内容在一秒钟后出现,我不确定是什么可能导致这种行为。临时的解决方案是将需要隐藏的选项卡放在需要一直显示的选项卡之后,但是出现了需要根据用户权限动态隐藏选项卡的情况。
如果有人有任何想法、类似经历或其他任何信息,请提供帮助。我们将 AjaxControlToolkit 3.5.50401 与 .NET 3.5 结合使用。
I'm having a problem with the AjaxControlToolkit TabContainer Control.
I apologize in advance for not submitting any code, but since the code is company property, i have no authority to post it anywhere.
The problem is as follows:
I have a TabContainer with 10 tabs, some of which contain user controls, some pure html and .net markup. When i set the tab number 5 to visible=false, something weird starts happening. Tab 6 operates as it should, but tab 7 to 10 show not only the content of their own tab, but also the tab that comes before them. I.e.:
when selecting the tab 7, it shows the content of tab 6 and tab 7, when selecting tab 7 it shows the content of tab 7 and tab 8 etc. the content of the previous tab appears a second later, and i am unsure as to what may be causing this behavior. The temporary solution is to place the tabs that needs to be hidden after the tabs that need to be shown all the time, but a situation has arisen where there is need to dynamically hide tabs depending on user permissions.
If anyone has any ideas, similar experiences, and anything else, please help. We are using AjaxControlToolkit 3.5.50401 with .NET 3.5.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 tabPanels 的可见属性时存在问题。
看看这个问题,这似乎是一个非常相似的行为。
Ajax Tookit TabPanel 不可见标签错误
There is issues when playing with the visible property of the tabPanels.
Look at this question that seem to be a very similar behavior.
Ajax Tookit TabPanel Invisible Tag Bug