Custom images + Custom skin + Asp.Net Theme

2 posts, 0 answers
  1. solutionfactory
    solutionfactory avatar
    45 posts
    Member since:
    Apr 2007

    Posted 09 Jun 2008 Link to this post

    Hi all,
    what is the proper way to handle custom images using a custom skin and  asp.net themes?
    Some images replace the original, others are in addition.

    I would like to have all the skin images into skin folder.

    Thanks in advance,
    Flavio
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 09 Jun 2008 Link to this post

    Hi Flavio,

    In your scenario, I recommend using the following approach:

    [web application root]
      \App_Themes
        \theme1
          theme1.skin (optional)
          theme1.css (optional)
            \RadGrid
              MySkin.css
              image1.gif
              image2.gif
              ........

    In other words, you will have RadGrid's skin CSS file, skin images and button images all in one single folder inside your theme's folder. Then for RadGrid you will have to set:

    <telerik:RadGrid
         Skin="MySkin"
         EnableEmbeddedSkins="False"
         ImagesPath="~/App_Themes/theme1/RadGrid/"
    />

    You can set these either in your ASPX or in your theme .skin file.

    Custom skin CSS files for RadControls for ASP.NET AJAX have to be registered manually on the page, but this is not the case when using ASP.NET themes, so if you implement all of the above, you should be done.


    Let us know if you need further advice.


    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top