This is a migrated thread and some comments may be shown as answers.

RadSkinManager Size and Style

1 Answer 195 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
Don asked on 30 Mar 2010, 01:23 PM
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!

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 05 Apr 2010, 08:22 AM
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.
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question