only 1 submenu item shown

4 posts, 0 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    Jul 2008

    Posted 02 Mar 2010 Link to this post

    Everything works perfectly on my development machine but when i post to my server it is only showing one submenu item...here is my code from my masterpage file:

     

    <telerik:RadScriptManager ID="RadScriptManagerMaster" runat="server">
    </telerik:RadScriptManager>

     

    <telerik:RadMenu id="RadMenu1" runat="server" BorderStyle="None" BorderWidth="0px"

     

     

     

    EnableEmbeddedSkins="False" EnableTheming="False" Flow="Vertical" Height="259px" Width="205px">

     

     

     

    <Items>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/images/menu_home_2.gif"

     

     

     

    ImageUrl="~/images/menu_home_1.gif" NavigateUrl="~/Default.aspx">

     

     

     

    </telerik:RadMenuItem>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/menu_aboutus_2.gif"

     

     

     

    ImageUrl="~/Images/menu_aboutus_1.gif" NavigateUrl="~/AboutUs.aspx">

     

     

     

    </telerik:RadMenuItem>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/menu_announcements_2.gif"

     

     

     

    ImageUrl="~/Images/menu_announcements_1.gif" NavigateUrl="~/Announcements.aspx">

     

     

     

    </telerik:RadMenuItem>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/menu_departments_2.gif"

     

     

     

    ImageUrl="~/Images/menu_departments_1.gif" >

     

     

     

    </telerik:RadMenuItem>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/menu_fiscal_2.gif"

     

     

     

    ImageUrl="~/Images/menu_fiscal_1.gif" NavigateUrl="~/FiscalAdministration.aspx">

     

     

     

    </telerik:RadMenuItem>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/menu_links_2.gif"

     

     

     

    ImageUrl="~/Images/menu_links_1.gif" NavigateUrl="~/PartnerLinks.aspx">

     

     

     

    </telerik:RadMenuItem>

     

     

     

    <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/menu_contact_2.gif"

     

     

     

    ImageUrl="~/Images/menu_contact_1.gif" NavigateUrl="~/ContactUs.aspx">

     

     

     

    </telerik:RadMenuItem>

     

     

     

    </Items>

     

     

     

    <ExpandAnimation Type="Linear" />

     

     

     

    </telerik:RadMenu>

    then i create the subitems of one of the menu items from the code behind of my master page:
     

     

     

     

    Try 

     

     

    cmd.CommandText = ("SELECT fldID,fldName FROM Departments ORDER BY fldOrder,fldName")

     

     

    cmd.Connection = DBConn

    DBConn.Open()

    DR = cmd.ExecuteReader()

     

    While DR.Read

     

     

     

        Dim menuItem As New Telerik.Web.UI.RadMenuItem

     

     

     

        MenuItem.NavigateUrl = "Dept_About.aspx?deptid=" & DR("fldID")

     

     

        MenuItem.ImageUrl =

    "Images/menu_" & DR("fldID") & "_1.gif"

     

     

     

     

       MenuItem.HoveredImageUrl = "Images/menu_" & DR("fldID") & "_2.gif"

     

     

     

     

       MenuItem.Visible = True

     

     

     

     

       Me.RadMenu1.Items(3).Items.Add(MenuItem)

     

     

    E

    nd While

     

     

     

     

    DR.Close()

     

     

     

    Me.RadMenu1.Items(3).Visible = True

     

     

     

     

       Catch ex As Exception

     

     

        lblCompanyName.Text = ex.ToString

     

     F

    inally

     

     

     

     

     

    DBConn.Close()

     

     

     E

    nd Try

     

     

     

     

     

    All of the images are on the server and my development machine..and they are using the same database table...on my development machine, it shows all 7 submenu items but on the server machine it only shows the last one as you can see here:  trpdd.comptechweb.com

    any help is much appeciated.

     

     

  2. Yana
    Admin
    Yana avatar
    4848 posts

    Posted 04 Mar 2010 Link to this post

    Hi Michael,

    I've tested the site and all the submenu items are shown as expected. Please check the attached screenshot.

    All the best,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Michael
    Michael avatar
    2 posts
    Member since:
    Jul 2008

    Posted 04 Mar 2010 Link to this post

    Yes, i got frustrated because i couldn't get it to work so i just used text in the subitems and the mouseover event to change the backcolor. It works with text in the subitems but not with images.

    I ran in to another problem yesterday trying to sue the menu on a different project. My menu was 700px wide by 40px tall inside a <td>. I had the <td> set to align text to right and vertical align to bottom but could not get the menu to align to the right, it would only align to the left.

    I would love to use the menu more but always have problems with it, i guess i don't have a good understanding of the css it uses?
  4. Yana
    Admin
    Yana avatar
    4848 posts

    Posted 04 Mar 2010 Link to this post

    Hello Michael,

    I guess that this is caused by "float: left" property of RadMenu, you can overwrite it with the following css styles:

    .RadMenu {
     float:none !important;
    }

    All the best,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top