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

Remove all skins and styling from controls

1 Answer 192 Views
Input
This is a migrated thread and some comments may be shown as answers.
Duncan
Top achievements
Rank 2
Duncan asked on 03 Nov 2011, 07:22 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Nov 2011, 05:03 AM
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.
Tags
Input
Asked by
Duncan
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or