New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Tutorial Creating a Custom Skin Using Sprite

The following tutorial demonstrates creating a custom RadTabStrip skin, using the default skin as a base. This new skin will take the appearance of the tab strip from its default look:

tabstrip defaultlook

See Sprite Guide for more information on RadTabStrip sprite.

Prepare the Project

  • Drag a RadTabStrip from the toolbox onto a new AJAX-enabled application Web form.

  • Use the RadTabStrip Item Builder to add tabs to the tab strip, or add them in the HTML markup. Include two levels of tabs, and include a disabled tab:

<telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server" SelectedIndex="0">
        <telerik:RadTab runat="server" Text="Root RadTab1" Selected="True">
                <telerik:RadTab runat="server" Text="Child RadTab 1">
                <telerik:RadTab runat="server" Text="Child RadTab 2">
        <telerik:RadTab runat="server" Text="Root RadTab2">
        <telerik:RadTab runat="server" Text="Root RadTab3">
        <telerik:RadTab runat="server" Text="Root RadTab4">
  • Copy the default RadTabStrip skin files from the installation directory to your project; copy both the \TabStrip directory that contains the images for this skin and the TabStrip.Default.css file that defines the skin styles.

The file path will typically be similar to this example: \Program Files\Progress\UI for ASP.NET AJAX RX YYYY\Skins\Default.

  • In the Solution Explorer, rename "TabStrip.Default.css" to "TabStrip.Green.css". The Solution Explorer should now look something like the following:tabstrip solutionexplorer

  • Open TabStrip.Green.css and replace all instances of _Default with _Green. Then save the file:tabstrip solutionfindandreplace

  • Drag the "TabStrip.Green.Css" file from the Solution Explorer onto your Web page. This automatically adds a reference to the page "

    " tag as a "" to the new stylesheet:tabstrip link
  • Set the EnableEmbeddedSkins property of the RadTabStrip control to False.

  • Change the Skin property of your RadTabStrip control to "Green".

  • Run the application. The new "Green" skin looks just like the Default skin:tabstrip defaultlook

Applying the Sprite

Instead of just two or three images being combined into one, you can combine an unlimited number of images into one called Sprite. You can read more about Sprite Guide

In order to modify the existing sprite according to some specific requirements such as different rounded corners or background-color applied to the rounded corners of the RadTabStrip you will need to change the sprite image as described below:

  1. Locate the already existing sprite of the RadTabStrip -TabStripStates.png(using the default installation it should be in C:\Program Files (x86)\Progress\UI for ASP.NET AJAX RX YYYY\Skins\Default\TabStrip ).

  2. Modify the sprite image of the RadTabStrip as desired – changing the shape of the corners, the background-color, the color of the different states of the tabs etc.tabstrip states details

  3. Save the Sprite with the same name - TabStripStates.png.

  4. Simply replace the new image with the old one in the \TabStrip folder.

For more information about Sprites, see:

See Also

In this article