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

EnableEmbeddedSkins attribute is ignored

2 Answers 77 Views
Input
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 24 Oct 2008, 10:18 AM
Hi, all!

I'm using RadTextBox and modified "Default" skin, so I set EnableEmbeddedSkins="false" on the control. It works, if I simply put
 <telerik:RadTextBox /> tag on the form.

It doesn't work in more complex scenario, when I put  <telerik:RadTextBox  EnableEmbeddedSkins="false" Skin="Default" /> into a template including ASCX which contains RadTextBox.

When RadTextBox is instantiated by means of a template , it ignores EnableEmbeddedSkins="false" and loads  embedded skin. I found out it by means of Fiddler.
It includes embedded CSS by:
http://ws-fedorov/SbConsole/WebResource.axd?d=m5DJ8_QrxCxO154OZA_BcuSk3Mizu6JaUpbaqBLqqb6AGYjsf4vSnIZ3P6ICHeythsE1uCgv2V1TtQlGLqIZmw2&t=633463791520000000

Who knows, how to overcome this erroneous behavior?

Thanks

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Oct 2008, 12:02 PM
Hello Alexey,

Most probably, you have another RadTextBox or RadDatePicker on your page, which registers the embedded Default skin.

Having a custom and an embedded skin with the same name on one page is not recommended, because the embedded skin will be registered after the custom one and will override all styles, which are defined with equal specificity. Please rename your custom skin to something else (e.g. Default2), rename the skin name suffixes in the custom CSS file and see whether the issue is resolved.

Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alexey
Top achievements
Rank 1
answered on 24 Oct 2008, 12:10 PM
Yes, I've already found out. CSS was loaded by RadDatePicker which didn't have DateInput-EnableEmbeddedSkins = "false"  
Tags
Input
Asked by
Alexey
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Alexey
Top achievements
Rank 1
Share this question
or