EnableEmbeddedSkins Issue

2 posts, 0 answers
  1. Terry
    Terry avatar
    1 posts
    Member since:
    May 2011

    Posted 02 Sep 2015 Link to this post

    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?





  2. Konstantin Dikov
    Konstantin Dikov avatar
    2087 posts

    Posted 07 Sep 2015 Link to this post

    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.

    Konstantin Dikov
    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
Back to Top