+1-888-365-2779
Try Now
More in this section

Forums / Deployment / r.a.d.menu not displaying themes

r.a.d.menu not displaying themes

4 posts, 0 answered
  1. Pamela Ramali
    Pamela Ramali avatar
    3 posts
    Registered:
    22 Feb 2006
    27 Apr 2006
    Link to this post
    I have recently installed Sitefinity on a development PC and have a project with it. I have the latest version, and it's great so far.

    However, I am having a problem with the r.a.d.menu on the project. I have downloaded the Inox theme set from the Telerik website, but do not seem to be able to apply the theme to the r.a.d.menu component. I have made sure the .skin file refers to the correct location, and have entered "Inox" in the Theme field in the r.a.d.menu attributes, after making sure the Themes dir is correct and all that. I have even tried the new subfolder structure for themes that is suggested in the documentation, but no luck. 

    The weird thing is that I have actually tried modifying the \Controls\RadControls\RadMenuControl.ascx file to include a second r.a.d.menu item that has the theme specified in the <radm:RadMenu> tag, and added dummy menu items to this second r.a.d.menu, and the menu, as well as the theme, works perfectly.
    Yet when I put in the same tag (theme="Inox") in the <radm:RadMenu> tag for the first/original r.a.d.menu, it does not seem to apply.

    Any help on this would be greatly appreciated.

    Thanks,
    Pam
  2. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    28 Apr 2006
    Link to this post

    Hello Pamela,

    It is very nice that you have liked our product so far. That is a big acknowledgement for us.

    Applying of themes in Sitefinity for the controls is in some way different from applying them to a control outside Sitefinity. To apply a custom theme for a radMenu, you need to do the following:

    1. Create a new folder in YourProject\RadControlsResources and name it with your theme name (in your case "Inox")

    2. Create a folder with name Menu in the folder created in step 1. and under Menu create folders Img and Common. To be sure that you have done everything alright, check the structure of the "Default" folder which is located in YourProject/RadControlsResources, too.

    3. After extracting your files from the theme you have downloaded from www.telerik.com, copy all the images to the new Img folder you have created in step 2. and the .css file to the Common directory. Rename the .css file to Styles.css.

    4. Open your project in VS and in the file Controls/RadControls/ThemeEnum.cs add to the enum the name of your theme. For example:

    public enum CmsThemes
    {
        NotSet,
        Default,
        GrassyGreen,
        MonoGraphic,
        Inox
    }

    5. In the Controls/RadControls/Helper.cs file add to the method GetThemeFolder one more case statement like this:

    case CmsThemes.Inox:
    {
        themeString = "Inox";
    //this is the name of the folder you have created in step 1.
        break
    ;
    }


    6. You can add any other specific logic for your theme in the file RadMenuControl.ascx.cs.

    7. You have to choose your theme within Sitefinity when adding a menu control by defining its properties.

    You can add any custom theme to any of the rad controls with the steps mentioned above. Hope this is helpful. If I am missing something or if you have any kind of problems, please let us know.

    All the best,

    Vassil Daskalov
    the telerik team

  3. Pamela Ramali
    Pamela Ramali avatar
    3 posts
    Registered:
    22 Feb 2006
    01 May 2006
    Link to this post
    Hello,

    Thank you for the detailed reply. I think I assumed that the r.a.d.controls in Sitefinity were standard, and thus would follow the standard r.a.d.controls manual. I would suggest that perhaps a mention on this should be made in the Sitefinity manual to avoid further confusion.

    I have tried the steps you detailed; however, I am still unable to apply the theme as the Theme drop down still does not have the custom theme (Inox in my case) in it. 
    I have gone through the files and checked if there were any other files mentioning the themes that were missed, but I could not find any; I have ensured that I have changed Helper.cs and ThemeEnum.cs, but the option still would not appear in the Theme drop down. 

    Your help on this is most appreciated.

    Thank you,
    Pam 
  4. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    02 May 2006
    Link to this post

    Hello Pamela,

    Thanks for the issue. We will have it in mind and will include it in the manual of the next version of Sitefinity.

    Sorry for not mentioning before but you need to recompile your project after changing the ThemeEnum.cs and helper.cs files. If you still experience problems, please write back again. Perhaps I have missed something else.

    All the best,
    Vassil Daskalov
    the telerik team
4 posts, 0 answered