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

[Solved] EnableEmbeddedSkins=false can't find dropdowncombo skin

6 Answers 351 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nancy Cara
Top achievements
Rank 1
Nancy Cara asked on 08 Feb 2008, 09:28 PM
I needed to have custom insert and edit buttons for my grid so I replaced them in the Office2007 folder, then set

Skin

="Office2007"

ImagesPath="~/Skins/Office2007/Grid"

EnableEmbeddedSkins="true"

This works great and shows the correct images except for my 

telerik

:GridDropDownColumn

It does not see the stylesheet or images for it. What do I need to do?

Nancy

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Feb 2008, 08:57 AM
Hi Nancy,

Setting Skin="<Some Skin>" in a Prometheus RadControl would mean that it would check and if there is already such an embedded skin use it. If you want to use the external skins from the Skins folder, you would need to set the EnableEmbeddedSkins property to false. Here is more info on the matter:
Hope this helps.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nancy Cara
Top achievements
Rank 1
answered on 13 Feb 2008, 06:48 PM
As I said before. The skins work fine with these settings:

Skin="Office2007"

ImagesPath="~/Skins/Office2007/Grid"

EnableEmbeddedSkins="false"

except for my GridDropDownColumn - it sees no skin at all  and the dropdown is only text, no box and I am unable to select anything. Please try putting a GridDropDownColumn in a Rad Prometheus Grid detailtableview then set Skins as I have done above and see if the dropdown shows a skin - if so I need to know where it is looking for it. I tried moving the skins for combobox under my Grid directory but it still don't find a skin for it.

0
Nancy Cara
Top achievements
Rank 1
answered on 13 Feb 2008, 07:38 PM
Actually I just realized the skin is not being applied to the grid either. Here are my settings:

Skin

="Office2007"

ImagesPath="~/Skins/Office2007/Grid"

EnableEmbeddedSkins="false"

I thought it was working because it was indeed finding my custom icons in Skins/Office2007/Grid - however it is not finding the stylesheet at all and no skin is being applied to the grid. I even tried creating a custom directory for the skin and copying all of the Office2007 stuff over there... Skins/MyCustomSkin/Grid  - then setting Skin="MyCustomSkin" but it's still not applying any skin.

0
Steve
Telerik team
answered on 14 Feb 2008, 11:41 AM
Hi Nancy,

Here is a quote from the help article "How Skins Work" that I previously pointed you to:

"All skins are installed in the 'Skins' subfolder of the RadControls "Prometheus" install location. A user can pick any skin for any control and modify some CSS rules. Then the EnableEmbeddedSkins property of the control must be set to false and the modified CSS file must be manually included in the ASPX page (or user control)."

Here is also the "Skin Registration" article referenced in the "How Skins Work":

"If the user needs a custom or a modified skin the CSS file should be registered by hand. The skin CSS file can be registered declaratively or from code-behind."

So in order for the control to "find" the stylesheet, you should register it manually.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tom Gilkison
Top achievements
Rank 1
answered on 24 Jun 2008, 08:55 PM
I would like to recommend that a link to:

http://www.telerik.com/help/aspnet-ajax/modifyingexistingskins.html

be added to:

Modifying existing skins/creating new skins
http://www.telerik.com/help/aspnet/grid/grdcreatingnewskins.html

It took me about 30 minutes to research the issue.  It seems like we have taken a step backwards regarding the modification of skins and the previous method which made sense.  Now I have no idea where Telerik is grabbing scripts and CSS because everything is encoded in a WebResource.axd link.
0
Sebastian
Telerik team
answered on 25 Jun 2008, 06:44 AM
Hello Tom,

Thank you for the suggestion. Note that in order to override styles in RadControl embedded skin, you can use the techniques discussed in the following blog post on our site:

http://blogs.telerik.com/DimoDimov/Posts/08-06-17/How_To_Override_Styles_in_a_RadControl_for_ASP_NET_AJAX_Embedded_Skin.aspx?ReturnURL=%2fDimoDimov%2fPosts.aspx

If you prefer not to use embedded web resources for RadControls for ASP.NET AJAX, consider disabling them through the EnableEmbeddedSkins/EnableEmbeddedScripts properties of the respective RadControl to false. Then you will need to register the Scripts/Skins manually on the page as depicted in this documentation topic:

http://www.telerik.com/help/aspnet-ajax/disabling_embedded_resources.html

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Nancy Cara
Top achievements
Rank 1
Answers by
Steve
Telerik team
Nancy Cara
Top achievements
Rank 1
Tom Gilkison
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or