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

ajax RadMenu custom skin

2 Answers 94 Views
Menu
This is a migrated thread and some comments may be shown as answers.
daniel liu
Top achievements
Rank 1
daniel liu asked on 14 Jan 2010, 08:24 PM
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 Answers, 1 is accepted

Sort by
0
Poul Henningsen
Top achievements
Rank 1
answered on 15 Jan 2010, 08:26 AM
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
0
daniel liu
Top achievements
Rank 1
answered on 19 Jan 2010, 07:08 PM
yes, it is a great tool to create skin.

thanks

daniel
Tags
Menu
Asked by
daniel liu
Top achievements
Rank 1
Answers by
Poul Henningsen
Top achievements
Rank 1
daniel liu
Top achievements
Rank 1
Share this question
or