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

SkinManager ShowChooser SmartTag width

1 Answer 78 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 2
Jeremy asked on 07 Jan 2010, 12:12 AM
is there a way to modify the width ShowChooser smarttag?  it doesn't allow a style tag or have a width tag.   also the outside width added to the table doesn't affect it, so I'm guessing it's internal.

It's taking up about 2x the space it needs (over two times as wide as the internal text of the control is), and I need to have that space....

is this the route for me?  a custom 'chooser'? or can I play nicely with the smarttag?

from this forum read:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/custom-skins-for-radcontrols.aspx

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 07 Jan 2010, 08:29 AM
Hello Ray,

You can obtain a reference to the RadComboBox, which is used by RadSkinManager internally, and set width like this:

<%@ 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(80);
    }
     
</script>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" OnLoad="RadSkinManager1_Load" />
 
</form>
</body>
</html>


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
SkinManager
Asked by
Jeremy
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or