Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Code Migration discrepancies from UltraWebTab to WebTab
posted

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 property
3. The DefaultImage property also no longer seems to exist. What is the replacement for this?

Please advise.

Thanks.
Parents
  • 235
    posted

    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"]);
Reply Children