How to get the list of available built-in skins?

3 posts, 1 answers
  1. Condorito
    Condorito avatar
    38 posts
    Member since:
    Mar 2009

    Posted 13 Jun 2014 Link to this post


    Is there a way to get the list of available built-in skins without referencing a SkinManager? 

    I understand that this will allow me to iterate through a SkinManager's list of skins:

    Dim oChooser As RadComboBox = CType(oSkinManager.FindControl("SkinChooser"), RadComboBox)
    For Each Item As RadComboBoxItem In oChooser.Items

    However this won't work for us under certain situations because there may not be a SkinManager available when we need to find out if a skin still exists or not.
    I tried to create a new RadSkinManager programmatically and then attempted to access its skin chooser, but the chooser comes back as an empty object.

    Thank you for you help.
  2. Answer
    Konstantin Dikov
    Konstantin Dikov avatar
    1793 posts

    Posted 17 Jun 2014 Link to this post

    Hello Juan,

    The observation and conclusions that you have made are correct and without a RadSkinManager you will not be able to retrieve all of the available skins with such approach.

    However, I could suggest that you try the following, more generic, way for retrieving the list of skins:
    protected void Page_Load(object sender, EventArgs e)
        List<string> list = Telerik.Web.SkinRegistrar.GetEmbeddedSkinNames(typeof(RadGrid));

    In general, it should not matter what control you are passing as parameter.

    Hope this helps.

    Konstantin Dikov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Condorito
    Condorito avatar
    38 posts
    Member since:
    Mar 2009

    Posted 19 Jun 2014 in reply to Konstantin Dikov Link to this post

    This worked.  Thank you for your help!
Back to Top