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
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
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.
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.
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
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.
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