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

Mac Skin

9 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 22 Sep 2008, 09:26 PM
Was the Mac skin removed from being embedded to Telerik controls?  

This:
<telerik:RadMenu ID="TopMenu" Runat="server" Skin="Mac" />
gives me the following error:
Telerik.Web.UI.RadMenu with ID='TopMenu' was unable to find embedded skin with name 'Mac'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

9 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 22 Sep 2008, 10:14 PM
Scott-$0$0$0$0Yes, the Mac skin was marked as obsolete in the Q2 2008 release. See this post for details:$0$0$0$0$0http://blogs.telerik.com/ZhivkoDimitrov/Posts/08-06-27/Q2_Asp_Net_skinning.aspx$0$0$0$0$0$0You can still use this skin, though, as an external skin. Simple visit the following URL to download the Mac skin:$0$0$0$0$0http://www.telerik.com/skins$0$0$0$0$0$0Then, simply set EnableEmbeddedSkins on your RadMenu to "False" and you should be all set. Hope that helps!$0$0$0$0$0-Todd$0
0
Scott
Top achievements
Rank 1
answered on 06 Oct 2008, 04:08 PM
Thanks, I have the Mac Skin working, however images are not being rendered with the RadDatePicker.  I only get a box with an X in it for where images should be.

This is referring to the Arrows (back & froward) as well as the image to open the date picker.

Thanks,
Scott
0
Todd Anglin
Top achievements
Rank 2
answered on 06 Oct 2008, 04:21 PM
Scott-

There are a couple of things we can do to try to figure out what's going on with your DatePicker:
  1. Can you please post the markup for you RadDatePicker so we can see how it's configured? That will help ensure there are no configuration problems. Please also include the location of your external Mac skin files.
  2. If you inspect the RadDatePicker at run-time (using something like Firebug in Firefox), what location is the DatePicker trying to load images from? That will reveal if the correct path is being rendered at run-time.
With those bits of info, I think we can quickly figure out what's going on here. Also, I'm assuming your external skin is working fine for all of your other RadControls?

-Todd
0
Dimo
Telerik team
answered on 06 Oct 2008, 04:23 PM
Hi Scott,

Please set ImagesPath for the datepicker and place your Mac skin image buttons there (clock.gif, clockhover.gif, etc)

Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Scott
Top achievements
Rank 1
answered on 06 Oct 2008, 05:18 PM
Okay that worked.  I added:
 ImagesPath="~/App_Themes/Mac/Calendar"

To control.  I don't want to have to add this to each Date or DateTime picker.  I'd rather this be in the Web.config or in a Css.  Any way I can do this?

Thanks
0
Todd Anglin
Top achievements
Rank 2
answered on 06 Oct 2008, 05:42 PM
Scott-

You can use an ASP.NET .skin file to solve this problem. You'll simply create a new .skin file in your "Mac" App_Theme directory, add the Telerik.Web.UI register tag, and then add markup for your DatePicker with the desired ImagePath setting. For more information on creating a .skin file, see this help doc:


With this .skin file in place, any DatePickers on a page that has the Mac theme applied will automatically use the correct ImagePath value.

Let me know if this helps.

-Todd
0
Scott
Top achievements
Rank 1
answered on 06 Oct 2008, 06:11 PM
My skin file now looks like this:
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<telerik:RadDatePicker ImagesPath="~/App_Themes/Mac/Calendar" />


And I'm getting the following error:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Literal content ('<telerik:RadDatePicker ImagesPath="~/App_Themes/Mac/Calendar" />') is not allowed within a 'skin file'.

Source Error: 

Line 1:  <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>Line 2:  <telerik:RadDatePicker ImagesPath="~/App_Themes/Mac/Calendar" />
0
Accepted
Todd Anglin
Top achievements
Rank 2
answered on 06 Oct 2008, 06:14 PM
Add runat="server" to your DatePicker and I think you'll be set. 

-Todd
0
Scott
Top achievements
Rank 1
answered on 06 Oct 2008, 06:30 PM
that did it, thanks
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Scott
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or