Remove all skins and styling from controls

2 posts, 0 answers
  1. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 03 Nov 2011 Link to this post

    I have a standard web form that i am thinking of converting to RadControls. I control the styling of my form through CSS, including widths of my controls.

    How do i ensure that all skinning and styling of the RadInput controls are removed so that they utilize my CSS. i have tried:

    EnableAjaxSkinRendering="False"
    EnableEmbeddedBaseStylesheet="False"
    EnableEmbeddedSkins="False"
    EnableTheming="False"

    Still the control seems to ignore my width setting in the CSS.

    I would also like to do this from the web.config. Could someone explain to me how i can set this up to strip all skinds and styling from the radcontrols so i can use my own CSS.

    Thanks,
    Duncan
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Nov 2011 Link to this post

    Hello Duncan,

    Try setting the CSS as shown below.
    <telerik:RadTextBox Text="Sam" ID="txt" runat="server"  CssClass="width" >
    </telerik:RadTextBox>

    CSS:
    <style type="text/css">
    .width
     {
      width:80% !important;
     }
    </style>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top