Can a skin be removed from the RadSkinManager?

2 posts, 1 answers
  1. Kasia
    Kasia avatar
    6 posts
    Member since:
    Jun 2009

    Posted 23 Jul 2009 Link to this post

    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

  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 29 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top