Add new Controls to Existing Skin

4 posts, 0 answers
  1. Mike
    Mike avatar
    41 posts
    Member since:
    Aug 2011

    Posted 03 Nov 2011 Link to this post

    I have created and saved a skin using the Visual Style Builder and now want to add controls and style them. Is there a way to import and select new controls?
  2. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 04 Nov 2011 Link to this post

    Hello Robert,

    Once you have your custom skin built with Visual style builder downloaded on your machine, you will a foldet with the skin name chosen by you, that contains another folder/folders named with the name of the controls - Button, FormDecorator, Editor etc. The will be also the necessary CSS files related with the styling of these controls:

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
        <link href="MyCustomSkin/Button.MyCustomSkin.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="sm1" runat="server" />
        <telerik:RadButton runat="server" ID="rb1" Text="Button" Skin="MyCustomSkin" EnableEmbeddedSkins="false"></telerik:RadButton>
             
        </form>
    </body>
    </html>

    If you want to load the skin form an external assembly, you could find useful the following help resource: How to load skins from external assemblies.

    Best wishes,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike
    Mike avatar
    41 posts
    Member since:
    Aug 2011

    Posted 04 Nov 2011 Link to this post

    I don't think this answer addresses what I am trying to do, unfortunately. I have done styling using the Visual Style Builder and exported to my machine. I can then import back into Visual Style Builder to modify the controls (grid, slider, calendar) I have already styled but I want to add the tabstrip so I can style it and add it to the same skin using Visual Style Builder.
  5. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 04 Nov 2011 Link to this post

    Hi Robert,

    Excuse me for the misunderstanding. No, you can not add additional controls as you want to do. The best way is to try to create a new skin for the controls you like to m customize and to apply the same color schemes you have applied already to the grid, slider and calendar.

    The new controls skinning will have the same name as the name used for the other controls and once you have done, you will combine them into a common folder. If your skin is named - mySkin - now you have a folder called mySkin and inside it there are CSS files door grid, slider and calendar, and filder containing the necessary images for these controls. You could add in mySkin folder controls that were created later, but should keep the same skin name convention.

    Best wishes,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top