Horizontal Menu not working

4 posts, 0 answers
  1. VS
    VS avatar
    101 posts
    Member since:
    Jul 2008

    Posted 12 Aug 2008 Link to this post

    Hi,

    I was working with ASP.Net menu control.
    Currently i had decided to move to menu control for AJAX.
    Vertical menu is working fine.
    but horizontal menu is not working. I am using the xml string to load the menu

    below are my code for aspx page and fopr .cs file

    aspx page

    <%

    @ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="_Test" %>

    <%

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

    <

    html>

    <

    head>

    <

    title>test</title>

    </

    head>

    <

    body>

    <

    form id="frmTest" runat="server">

    <asp:ScriptManager runat="server" ID="uiScriptManager" />

    <rad:RadMenu id="RadMenuNavigation" runat="server" Width="100%" />

    </

    form>

    </

    body>

    </

    html>



    .cs page

    using

    System;

    using

    System.Data;

    using

    System.Configuration;

    using

    System.Web;

    using

    System.Web.Security;

    using

    System.Web.UI;

    using

    System.Web.UI.WebControls;

    using

    System.Web.UI.WebControls.WebParts;

    using

    System.Web.UI.HtmlControls;

    using

    System.Collections.Generic;

    using

    Telerik.Web.UI;

    public

    partial class _Test : System.Web.UI.Page

    {

    protected void Page_Load(object sender, EventArgs e)

    {

    RadMenuNavigation.Flow =

    ItemFlow.Horizontal;

    string menuXml = "<Menu><Group><Item Text='Home' Href='Test.aspx' originalAttribute="Href" originalPath="Test.aspx" originalAttribute="Href" originalPath="Test.aspx" ToolTip='This is a tooltip' AccessKey='H'></Item><Item Text='Set Working Club' Href='default.aspx' originalAttribute="Href" originalPath="default.aspx" originalAttribute="Href" originalPath="default.aspx" ToolTip='Set Working Club' AccessKey='W'></Item><Item Text='Set Working Member' Href='default.aspx'></Item><Item Text='MembershipPackages' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='MembershipPackages" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='MembershipPackages" Href='default.aspx'></Item><Item Text='Renew Membership' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Renew Membership" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Renew Membership" Href='default.aspx'></Item><Item Text='Membership History' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Membership History" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Membership History" Href='default.aspx'></Item><Item Text='View Prior Orders' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='View Prior Orders" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='View Prior Orders" Href='default.aspx'></Item><Item Text='My Details' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='My Details" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='My Details" Href='default.aspx'></Item><Item Text='Benefits' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Benefits" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Benefits" Href='default.aspx'></Item><Item Text='Create New Member' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Create New Member" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Create New Member" Href='default.aspx'></Item><Item Text='Manage Products' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Products" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Products" Href='test1.aspx' originalAttribute="Href" originalPath="test1.aspx" originalAttribute="Href" originalPath="test1.aspx" ToolTip='Manage Products' AccessKey='P'><Item Text='Packages' Href='default.aspx'></Item><Item Text='Performances' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Performances" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Performances" Href='default.aspx'></Item><Item Text='Merchandise' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Merchandise" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Merchandise" Href='default.aspx'></Item><Item Text='Memberships' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Memberships" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Memberships" Href='default.aspx'></Item><Item Text='Fees' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Fees" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Fees" Href='default.aspx'></Item><Item Text='Categories' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Categories" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Categories" Href='default.aspx'></Item><Item Text='Price Types' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Price Types" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Price Types" Href='default.aspx'></Item><Item Text='Waitlist Shows' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Waitlist Shows" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Waitlist Shows" Href='default.aspx'></Item><Item Text='Selections' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Selections" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Selections" Href='default.aspx'></Item><Item Text='Groups' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Groups" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Groups" Href='default.aspx'></Item><Item Text='Site Content' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Site Content" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Site Content" Href='default.aspx'></Item><Item Text='Manage Payments' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Payments" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Payments" Href='default.aspx'><Item Text='Process Payments' originalAttribute="Href" originalPath="default.aspx'><Item Text='Process Payments" originalAttribute="Href" originalPath="default.aspx'><Item Text='Process Payments" Href='default.aspx'><Item Text='Report' originalAttribute="Href" originalPath="default.aspx'><Item Text='Report" originalAttribute="Href" originalPath="default.aspx'><Item Text='Report" Href='default.aspx'><Item Text='Order' originalAttribute="Href" originalPath="default.aspx'><Item Text='Order" originalAttribute="Href" originalPath="default.aspx'><Item Text='Order" Href='default.aspx'></Item><Item Text='Member' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member" Href='Default.aspx'></Item><Item Text='Allocation' originalAttribute="Href" originalPath="Default.aspx'></Item><Item Text='Allocation" originalAttribute="Href" originalPath="Default.aspx'></Item><Item Text='Allocation" Href='default.aspx'></Item></Item></Item><Item Text='Change Credit Card' originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Change Credit Card" originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Change Credit Card" Href='default.aspx'></Item></Item></Item><Item Text='Manage Allocations' originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Manage Allocations" originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Manage Allocations" Href='default.aspx'></Item><Item Text='Manage Groups' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Groups" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Groups" Href='default.aspx'><Item Text='Manage Delegations' originalAttribute="Href" originalPath="default.aspx'><Item Text='Manage Delegations" originalAttribute="Href" originalPath="default.aspx'><Item Text='Manage Delegations" Href='default.aspx'></Item></Item><Item Text='Seating Preferences' originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Seating Preferences" originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Seating Preferences" Href='default.aspx'><Item Text='My Preference Groups' originalAttribute="Href" originalPath="default.aspx'><Item Text='My Preference Groups" originalAttribute="Href" originalPath="default.aspx'><Item Text='My Preference Groups" Href='default.aspx'></Item></Item><Item Text='Fast Renewals' originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Fast Renewals" originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Fast Renewals" Href='default.aspx'></Item><Item Text='Member Upload' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member Upload" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member Upload" Href='default.aspx'></Item><Item Text='Manage Club' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Club" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Club" Href='default.aspx'><Item Text='Details' originalAttribute="Href" originalPath="default.aspx'><Item Text='Details" originalAttribute="Href" originalPath="default.aspx'><Item Text='Details" Href='default.aspx'></Item><Item Text='Contacts' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Contacts" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Contacts" Href='default.aspx'></Item><Item Text='Portal' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Portal" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Portal" Href='default.aspx'></Item><Item Text='Category Seating Options' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Category Seating Options" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Category Seating Options" Href='default.aspx'></Item><Item Text='Workflow Configuration' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Workflow Configuration" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Workflow Configuration" Href='default.aspx'></Item><Item Text='Payment Schedules' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Payment Schedules" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Payment Schedules" Href='default.aspx'></Item></Item><Item Text='Contact Us' originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Contact Us" originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Contact Us" Href='default.aspx'></Item><Item Text='Logout' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Logout" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Logout" Href='default.aspx'></Item></Group></Menu>";

    RadMenuNavigation.LoadXml(menuXml);

    }

    }

    please help urgently.

    Regards

    Sujith

  2. VS
    VS avatar
    101 posts
    Member since:
    Jul 2008

    Posted 12 Aug 2008 Link to this post

    Hi got it..
    i did this

    RadMenuNavigation.LoadXml(menuXml);

    RadMenuNavigation.Flow =

    ItemFlow.Horizontal;


    instead of

    RadMenuNavigation.Flow = ItemFlow.Horizontal;

    RadMenuNavigation.LoadXml(menuXml);

  3. www.onlineisgreat.com Web design
    www.onlineisgreat.com Web design avatar
    1 posts
    Member since:
    Oct 2009

    Posted 23 Oct 2009 Link to this post

    Even i am not able to put the menu correctly in www.onlineisgreat.com
  4. Yana
    Admin
    Yana avatar
    4907 posts

    Posted 27 Oct 2009 Link to this post

    Hello there,

    Please explain in more details the problems you experience with RadMenu. Thanks

    Best regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top