SkinManager ShowChooser SmartTag width

2 posts, 1 answers
  1. Jeremy
    Jeremy avatar
    11 posts
    Member since:
    Nov 2009

    Posted 06 Jan 2010 Link to this post

    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:
  2. Answer
    Dimo avatar
    8439 posts

    Posted 07 Jan 2010 Link to this post

    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);
    <!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" ShowChooser="true" OnLoad="RadSkinManager1_Load" />

    All the best,
    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.
Back to Top