ajax RadMenu custom skin

3 posts, 0 answers
  1. daniel liu
    daniel liu avatar
    29 posts
    Member since:
    Oct 2009

    Posted 14 Jan 2010 Link to this post

    Hi,

    I tried to follow http://www.telerik.com/help/aspnet-ajax/menu_appearancecreatingacustomskin.html to create menu web control with custom skin (OutlookRed), but the skin  is not working on the web control.

    here is the code for the menu web control:

    <%

    @ Control Language="C#" AutoEventWireup="true" CodeBehind="CtrMenu.ascx.cs" Inherits="USC.Advancement.Web.CtrMenu" %>

     

    <%

    @ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

     

     

    <link href="~/Controls/Menu/Skins/OutlookRed/Menu.OutlookRed.css"

     

     

    rel="stylesheet" type="text/css" />

     

     

    <

     

    telerik:RadMenu runat="server" ID="RadMenu1" Width="100%" Skin="OutlookRed"

     

    DataSourceID

     

    ="XmlDataSource1" OnItemDataBound="RadMenu1_ItemDataBound" EnableEmbeddedSkins="false"

     

    DataTextField

     

    ="Text" style="z-index:2" DataNavigateUrlField="Url">

     

     

    </telerik:RadMenu>

     

     

    <div style="clear: both">

     

     

    </div>

     

     

    <

     

    asp:XmlDataSource runat="server" ID="XmlDataSource1"

     

    DataFile

     

    ="Menu.xml"

     

    XPath

     

    ="/Menu/Item" />

     



    It is working when I build custom skin on a aspx page, but not working on a menu web control.

    please help.

    Thanks

    daniel
  2. Poul Henningsen
    Poul Henningsen avatar
    194 posts
    Member since:
    May 2006

    Posted 15 Jan 2010 Link to this post

    You'd better use the Visual Style Builder to make your custom skin and after that follow the instructions from this help article to manually register the skin.

    Cheers,
    Poul
  3. daniel liu
    daniel liu avatar
    29 posts
    Member since:
    Oct 2009

    Posted 19 Jan 2010 Link to this post

    yes, it is a great tool to create skin.

    thanks

    daniel
Back to Top