简体   繁体   English

是否可以在ajax TabContainer上隐藏Tab Strip?

[英]Is it possible to hide the Tab Strip on an ajax TabContainer?

Suppose I have an ajax TabContainer with two tabs. 假设我有一个带有两个标签的ajax TabContainer。 Due to certain buisness logic, we might set one of the tabs to Visible = false. 由于某些商务逻辑,我们可能会将选项卡之一设置为Visible = false。

In this scenario, is it possible to hide the TabStrip at the top, so that they don't see only one tab? 在这种情况下,是否可以在顶部隐藏TabStrip,以使他们不会只看到一个选项卡?

OK; 好; didn't get any replies, but just wanted to summarize what I was able to do: 没有得到任何答复,只是想总结一下我能够做的事情:

For the above situation, I actually was able to move the contents of the one visible tab outside the container by reassigning its parent control, and then re-adding where it needed to go (my example is a little more complicated than usual, due to update panels being in the section of code getting moved) 对于上述情况,我实际上可以通过重新分配其父控件将一个可见选项卡的内容移到容器外部,然后在需要的地方重新添加(我的示例比平时复杂一些,因为更新面板位于代码部分中)

However, it does seem possible to hide the TabStrip by modifying its CSS class depending on how many tabs should be displayed. 但是,似乎可以通过修改CSS类来隐藏TabStrip,具体取决于应显示多少个选项卡。 See http://www.krissteele.net/blogdetails.aspx?id=117 or http://cushen.wordpress.com/2007/10/25/how-to-styling-the-asp-net-ajax-tabcontainer-control/ for some examples of how to modify the styling. 参见http://www.krissteele.net/blogdetails.aspx?id=117http://cushen.wordpress.com/2007/10/25/how-to-styling-the-asp-net-ajax-tabcontainer -control /有关如何修改样式的一些示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM