Why do demo tabs appear when no tabs have been defined? I am planning on adding tabs programmatically, but initially the tabs will be empty. I tried setting the visible property of the tab control to false, but that is preventing the "initialize" client side event from being fired (I'd like to know why that is happening too, but that is a problem for another day). I am running v8.3 with asp.net 3.5.
Can someone please tell me how to prevent these demo tabs from initially appearing?
js
Hello,
When you drop any Infragistics control from the toolbox to the design surface, it automatically creates a preview of what the control would look like in the browser, even though it is empty (e.g. tabs will be showed in design time even though there are no tabs defined). This is done on purpose, so that you can preview your surface and see how the control will fit the design. Still, when you run the page, the control will not show any tabs.
Does that affect your work in any way?
Rumen Stankov"] Still, when you run the page, the control will not show any tabs.
Still, when you run the page, the control will not show any tabs.
The demo tabs appear at runtime...
This certainly sounds weird. Could you please paste your ASPX and code-behind code so we can take a look and hopefully provide further suggestions?
Nothing in the code behnd.
Here's the aspx:
<%@ Register Assembly="Infragistics35.WebUI.UltraWebTab.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.WebUI.UltraWebTab" TagPrefix="igtab" %>
<head runat="server">
<body>
<form id="form1" runat="server">
<igtab:UltraWebTab ID="UltraWebTab1" runat="server">
</igtab:UltraWebTab>
</html>
So you're saying this is a feature not a bug? I'm sorry, but that's a terrible feature. Perhaps in the next release, you can add a property that turns the feature off for those of us who don't need a reminder that the control is there...
Unfortunately, setting the Visible property to false is not an option. As I stated in my original post, setting that property to false prevents the initialize client-side function from firing. I'm doing a bunch of work in that event handler and need it to fire in the initial response of the page. I will try setting the tab's visibility to hidden during client-side Initialization.
Thanks.
Oh, sure, sorry for the extra answer roundtrip. This is indeed just a reminder that the TabStrip is on the page, even if it is empty. If you do intend to have an empty TabStrip, just hide it using the Visible = False property.
Other than that, just adding your own tabs to the tabstrip will remove the demo tabs. Hopefully this is not too confusing, but generally most people find it convenient.