RadSkinManager Size and Style

2 posts, 0 answers
  1. Don
    Don avatar
    8 posts
    Member since:
    May 2009

    Posted 30 Mar 2010 Link to this post

    How would you set the size and keep a constant style on the RadSkinManager ComboBox? Lets say just like the RadSkinManager in your demo sites, which is half the size of anything I can do with mine, and the Telerik demo sites ComboBox look stays the same after you choose a new skin, width and height cannot be set as is declares it has no public property named width or height.
    Please how is this done!
  2. Dimo
    Dimo avatar
    8318 posts

    Posted 05 Apr 2010 Link to this post

    Hello Don,

    The skin chooser control on our demos is a custom control, because RadSkinManager displays only skin names, while we wanted to display also skin thumbnails for preview.

    Here is an example, which shows how to control the width and skin of the RadSkinManager dropdown (which is a RadComboBox).

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <script runat="server">
        protected void RadSkinManager1_Load(object sender, EventArgs e)
            (sender as RadSkinManager).GetSkinChooser().Width = Unit.Pixel(70);
            (sender as RadSkinManager).GetSkinChooser().Height = Unit.Pixel(360);
            (sender as RadSkinManager).GetSkinChooser().Skin = "Black";
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <head runat="server">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" OnLoad="RadSkinManager1_Load" ShowChooser="true" />
    <br /><br />
    <telerik:RadCalendar ID="RadCalendar1" runat="server" />

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top