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

Can a skin be removed from the RadSkinManager?

1 Answer 112 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Kasia
Top achievements
Rank 1
Kasia asked on 23 Jul 2009, 02:08 PM

Is it possible to exclude a skin from the RadSkinManager?  For example if I didn’t want to show the Hay skin, how would I go about doing that?

Thank you,

Kasia

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 29 Jul 2009, 07:39 AM
Hello Kasia,

Yes, you can remove certain skins from the RadSkinManager's SkinChooser by caturing its OnPreRender event and removing the skin e.g as shown below:


protected void RadSkinManager1_PreRender(object sender, EventArgs e)  
{  
       RadComboBox skinChooser = RadSkinManager1.FindControl("SkinChooser"as RadComboBox;  
       int i = 0;  
       while (i < skinChooser.Items.Count)  
       {  
           if (skinChooser.Items[i].Text == "Black")  
           {  
               skinChooser.Items.Remove(skinChooser.Items[i]);  
           }  
           i++;  
           //more conditions here  
       }  
}  

You can find more information about this below:

http://www.telerik.com/help/aspnet-ajax/radskinmanager.html

Kind regards,
Svetlina
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.
Tags
FormDecorator
Asked by
Kasia
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or