Quick tip: Overriding the CSS in Telerik controls

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!

This entry was posted in Quick Tips and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree