| <?xml version="1.0" encoding="utf-8" ?> |
| <Menu dir="rtl"> |
| <Group> |
| <Item Text="קובץ" Key="ק"> |
| <Group> |
| <Item Text="חדש" LeftLogo="Images\new.gif"/> |
| <Item Text="פתיחה" LeftLogo="Images\open.gif" > |
| <Group Width="140" Flow="Vertical"> |
| <Item Text="פרוייקט 1" /> |
| <Item Text="פרוייקט 2" /> |
| <Item Text="פרוייקט 3" /> |
| <Item Text="פרוייקט 4" /> |
| </Group> |
| </Item> |
| </Group> |
| </Item> |
| <Item Text="עריכה" AccessKey="ע" > |
| <Group Flow="Vertical"> |
| <Item Text="בטל" /> |
| <Item Text="בצע שוב" Enabled="False" /> |
| <Item Text="גזור" LeftLogo="Images\cut.gif" /> |
| <Item Text="העתק" LeftLogo="Images\copy.gif" /> |
| <Item Text="הדבק" /> |
| </Group> |
| </Item> |
| <Item Text="תצוגה" AccessKey="ת" > |
| <Group Flow="Vertical"> |
| <Item Text="דוגמה 1" /> |
| </Group> |
| </Item> |
| <Item Text="עזרה" Key="ז" > |
| <Group Flow="Vertical" OffsetX="-26"> |
| <Item Text="אינדקס" LeftLogo="Images\help.gif" /> |
| <Item Text="חיפוש" Href="http://www.google.com"/> |
| <Item Text="פתיחת דך הבית" Href="http://www.telerik.com"/> |
| </Group> |
| </Item> |
| </Group> |
| </Menu> |
| using System; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Telerik.Web.UI; |
| public partial class _Default : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| RadMenu1.LoadContentFile("~/DataItems2.xml"); |
| } |
| } |
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <h1 style="text-align: center"> |
| Menu Example</h1> |
| </div> |
| <div> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadMenu ID="RadMenu1" runat="server" width="80%" style="left: 2px"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </telerik:RadMenu> |
| </div> |
| </form> |
| </body> |
| </html> |
Any suggestions will be welcome...
Thanks.
<
telerik:RadAjaxManagerProxy ID="RadAjaxProxyManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadComboBoxBudgetCenter">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ButtonRefreshGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="ButtonRefreshGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ButtonRefreshGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="ButtonHideShowActuals">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="BOSummaryGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ButtonRefreshGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />
</telerik:RadAjaxLoadingPanel>
| <script type="text/javascript"> |
| function ClientNodeClicked(sender, eventArgs) |
| { |
| var treeNode = eventArgs.get_node(); |
| var nodeValue = treeNode.get_text(); |
| alert(nodeValue); |
| if (nodeValue == "1") |
| { |
| window.open("page1.aspx", "RadPane2"); |
| } |
| else if (nodeValue == "1.1") |
| { |
| window.open("page2.aspx", "RadPane2"); |
| } |
| } |
| </script> |
| <?xml version="1.0" encoding="UTF-8"?> |
| <Tree> |
| <Node ID="1" Text="Node 1" > |
| <Node ID="1.1" Text="Node 1.1" /> |
| </Node> |
| </Tree> |
.TabLine
{
background: url(tab-line.gif) repeat-x 0 100%;
height: 27px;
}
But when I add a level 2 menu, the horizontal line disappears. I am using the Gray skin with the latest version of Rad Controls.
I cannot give a live example as the site is password protected.
Thanks,
Joe