Mac Skin

10 posts, 1 answers
  1. Scott
    Scott avatar
    19 posts
    Member since:
    Sep 2008

    Posted 22 Sep 2008 Link to this post

    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.
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 22 Sep 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Scott
    Scott avatar
    19 posts
    Member since:
    Sep 2008

    Posted 06 Oct 2008 Link to this post

    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
  5. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 06 Oct 2008 Link to this post

    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
  6. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 06 Oct 2008 Link to this post

    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.
  7. Scott
    Scott avatar
    19 posts
    Member since:
    Sep 2008

    Posted 06 Oct 2008 Link to this post

    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
  8. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 06 Oct 2008 Link to this post

    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
  9. Scott
    Scott avatar
    19 posts
    Member since:
    Sep 2008

    Posted 06 Oct 2008 Link to this post

    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" />
  10. Answer
    Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 06 Oct 2008 Link to this post

    Add runat="server" to your DatePicker and I think you'll be set. 

    -Todd
  11. Scott
    Scott avatar
    19 posts
    Member since:
    Sep 2008

    Posted 06 Oct 2008 Link to this post

    that did it, thanks
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017