I am migrating from the UltraWebTab control to the WebTab control and I have the following code:
if (!this.IsPostBack) { WebTabSet.Tabs.ReleaseTabState(); Tab firstTab = igTabStrip.Tabs[0] as Tab; //Loop thru and add the full max count of tabs since can't really add these dynamically without postbacks for (int i = 1; i < WebTabSet.MaxTabCount; i++) { Tab tab = new Tab("Loading... O"); //have to add space (with char) because the close image overruns the text tab.Visible = false; tab.ImageAlign = ImageAlign.Right; tab.DefaultImage = firstTab.DefaultImage; //resist hardcoding the image. there is already a default tab set in aspx code, so grab it's image igTabStrip.Tabs.Add(tab); } }I believe I have found the documentation that indicates that the ContentTabItem is the replacement for the Tab element.However, I am stuck with a few discrepancies:1. The ContentTabItem does not have an overloaded constructor. Is this just setting the Text property or something else?2. The ImageAlign property no longer exists. The ImageAlignment property seems to require different settings than the former ImageAlign property3. The DefaultImage property also no longer seems to exist. What is the replacement for this?Please advise.Thanks.
I also have the following events which need to be migrated:
if (this.Context.Request.QueryString["SearchProvider"] != "ClaimListSearchLiab") nrWebTabMain.ClientSideEvents.AfterSelectedTabChange = "AfterSelectedTabIndexChange"; if (this.Context.Request.QueryString["ContentTabIndex"] != null) this.nrWebTabMain.SelectedTabIndex = Int16.Parse(this.Context.Request.QueryString["ContentTabIndex"]);
As well as this:
<igtab:WebTab CssClass="defaultTabStrip" ID="igTabStrip" runat="server" Height="653px" TabIndex="0" Width="100%" BorderColor="#0056D7" BorderStyle="Solid" BorderWidth="1px" BackColor="#88B0E0" ThreeDEffect="False" DisplayMode="Scrollable" Font-Names="Verdana" Font-Size="9pt"> <ClientEvent BeforeSelectedTabChange="BeforeSelectedIndexChange" AfterSelectedTabChange="AfterSelectedIndexChange"></ClientEvent> <ScrollButtons> <PressedStyle BackColor="#E1EDFF"> </PressedStyle> <HoverStyle BackColor="LightSteelBlue"> </HoverStyle> <Style Height="18px"> </Style> </ScrollButtons> <DefaultTabStyle Height="22px" BackColor="#88B0E0"> <Padding Top="4px" Left="5px" Right="0px" Bottom="0px" /> <Margin Top="0px" Bottom="0px" /> </DefaultTabStyle> <RoundedImage LeftSideWidth="7" RightSideWidth="6" ShiftOfImages="2" SelectedImage="../images/ig_tab_blueb1.gif" NormalImage="../images/ig_tab_blueb1.gif" FillStyle="LeftMergedWithCenter"></RoundedImage> <HoverTabStyle ForeColor="DarkOrange"> </HoverTabStyle> <SelectedTabStyle Font-Bold="true"> </SelectedTabStyle> <DefaultTabSeparatorStyle> </DefaultTabSeparatorStyle> <Tabs> <igtab:Tab Text="Loading... O" ImageAlign="Right" DefaultImage="../images/Close.png"> </igtab:Tab> </Tabs> </igtab:WebTab>
Hello Samir,
Thank you for posting in our community.
Please refer to our documentation:
- the following tables list the members exposed by ContentTabItem: http://help.infragistics.com/Help/Doc/ASPNET/2014.1/CLR4.0/html/Infragistics4.Web.v14.1~Infragistics.Web.UI.LayoutControls.ContentTabItem_members.html (It seems that 'DefaultImage' property is no longer available in ContentTabItem class, however there is 'ImageAlignment' property which is assumed to be the replacement of 'ImageAlign' property)
- the following tables lists the members exposed by TabClientEvents: http://help.infragistics.com/Help/Doc/ASPNET/2014.1/CLR4.0/html/Infragistics4.Web.v14.1~Infragistics.Web.UI.LayoutControls.TabClientEvents_members.html (It seems that 'AfterSelectedTabChange' and 'SelectedTabIndex' events are no longer available, however there is 'SelectedIndexChanging/SelectedIndexChanged' and 'ActiveTabChange' events. It's up to your application logic which would be the most suitable event replacement.)
- the following tables list the members exposed by WebTab: http://help.infragistics.com/Help/Doc/ASPNET/2014.1/CLR4.0/html/Infragistics4.Web.v14.1~Infragistics.Web.UI.LayoutControls.WebTab_members.html
If I can provide further assistance, feel free to contact me.
Sincerely,
Tsanna