This is a migrated thread and some comments may be shown as answers.

Dynamically loading custom tabstrip skin not working.

2 Answers 57 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
KevinMc
Top achievements
Rank 1
KevinMc asked on 11 Mar 2009, 02:28 PM
I am trying to apply a skin to a tabstrip based on a user selection. If i use the embedded skins everything works fine but if i try to use a custom skin it does not get applied. If i set one of the custom skins in the markup it works fine. It just does not work when i try to set it in the page_load event. So in the code below case 1 and 3 work using the embedded skins but case 2 does not work. The custom skin is in the radcontrols directory in the root of the website.


if (!string.IsNullOrEmpty(Request.QueryString["ProductID"])) 
                { 
                    Product rootProduct = ProductManager.GetParentProduct(int.Parse(Request.QueryString["ProductID"])); 
 
                    switch (rootProduct.ProductName.ToLower()) 
                    { 
                        case "metasmart & smartamine": 
                            ProductHeaderSmart.Visible = true
                            //tsCategories.SkinID = "ProductStripSmart"
                            tsCategories.Skin = "Outlook"
                            break; 
                        case "rovabio": 
                            ProductHeaderRova.Visible = true
                            tsCategories.EnableEmbeddedSkins = false
                            tsCategories.Skin = "ProductStripRova"
                            break; 
                        case "rhodimet": 
                            ProductHeaderRhod.Visible = true
                            //tsCategories.SkinID = "ProductStripRhod"
                            tsCategories.Skin = "WebBlue"
                            break; 
                        case "microvit": 
                            ProductHeaderMicro.Visible = true
                            //tsCategories.SkinID = "ProduuctStripMicro"
                            break; 
                        default: 
                            break; 
                    } 

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Mar 2009, 02:45 PM
Hi KevinMc,

Registering custom skin requires the developer to manually add the corresponding link tags. Please check this help topic for additional info and sample code.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
KevinMc
Top achievements
Rank 1
answered on 11 Mar 2009, 06:13 PM
Yep, that was the problem.
Tags
TabStrip
Asked by
KevinMc
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
KevinMc
Top achievements
Rank 1
Share this question
or