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

EnableEmbeddedSkins Issue

1 Answer 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 02 Sep 2015, 03:38 PM

Hi, I'm attempting to remove all built-in Telerik skins and CSS.  I've set all RadTextBox controls to have the EnableEmbeddedSkins and EnableEmbeddedBaseStylesheet attributes to FALSE. I'm finding that in order for the two attributes mentioned above to function properly ALL Telerik controls on the page must have the same attributes set.  When I set all controls on the page with these values everything looks great. If I have any control on the page not set with those attributes then all of the controls get the skins and style sheets added even though I've set those two attributes.

I need to have my RadTextBox controls set to have no added skins or style sheets added but have my RadDateInput controls set to have the added skins and stylesheets. Is this how these attributes work or is there something else interfering with these attributes?

 

Thanks

 

 ‚Äč

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 07 Sep 2015, 10:43 AM
Hi Terry,

Thank you for contacting Telerik Support.

Dealing with the EnableEmbeddedSkins/BaseStylesheet properties, as you have noticed, could be tricky and will not work in all scenarios, especially with the INPUT controls, because they are using the same base class (RadInput). Since the EnableEmbeddedSkins/BaseStylesheet will work only if there is no other control of the same type with enabled Skins/BaseStylesheet, when you include a RadDateInput or even RadDatePicker, the RadTextBox will use the built-in styles of RadInput.

With the above in mind, if you need to remove the styles of your INPUT elements, you need to disable the skins and base stylesheets for all controls that generate an INPUT element from the RadInput class (RadNumericTextBox, RadDateInput, RadDatePicker, etc.).

Finally, just for clarification, please note that this behavior is made that way by design, so that all input elements in specific skin will be with the same appearance, because this is the common requirement.

If any other questions on this matter arise, please feel free to contact us again.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Terry
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or