Quick tip: Overriding the CSS in Telerik controls

by Mike Badgley on March 16, 2010

Thought I’d pass this along – nothing to earth shattering, but it should save you some headaches!

When attempting to modify the layout and styling for most Telerik controls, you’re better off disabling the embedded styles that come with it, rather than fighting to override everything with your CSS.

To accomplish this, ensure the following parameters are set on the control, as shown in the example below:

<telerik :RadTreeView ID="archiveTreeView" ShowLineImages="false" runat="server" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False"></telerik>

The two parameters that disable the CSS are EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins

Once these two parameters have been invoked You should be good to go!

One comment

Thanks, this was helpful!

by Doctor Tiki on November 29, 1999 at 7:00 pm. #