Limited Number of Items on Dynamic Menu

6 posts, 0 answers
  1. Randy
    Randy avatar
    18 posts
    Member since:
    May 2008

    Posted 26 Jun 2008 Link to this post

    I am creating the RadMenu from the code behind dynamically:

    ie

    SubMenuItem =

    New Telerik.Web.UI.RadMenuItem
    SubMenuItem.Text =
    "TEXT"

    MainMenuItem.Items.Add(SubMenuItem)
    SubMenuItem1.Text =

    "Search "
    SubMenuItem1.NavigateUrl = "~/SomeFile.aspx"
    SubMenuItem.Items.Add(SubMenuItem1)

    SubMenuItem1 =

    New Telerik.Web.UI.RadMenuItem
    SubMenuItem1.Text =
    "User Queries"
    SubMenuItem1.NavigateUrl = "~/User/SomeFile.aspx"
    SubMenuItem.Items.Add(SubMenuItem1)

    When the menu renders it only shows 19 Items, I have 20.  I have moved the bottom 2 around and it only shows the 19th.  Is there a limit on the number of menu Items you can create, or am I missing something here?

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 27 Jun 2008 Link to this post

    Hello Ryan Campbell,

    There is no limitation of the total number of menu items displayed by RadMenu. Could it be that the last few items wrap on a new line?

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Randy
    Randy avatar
    18 posts
    Member since:
    May 2008

    Posted 27 Jun 2008 Link to this post

    I doubt it, there all being written out the same and the other 18 show up just fine.  The last menu Item is only 3 chars long.
  4. Randy
    Randy avatar
    18 posts
    Member since:
    May 2008

    Posted 27 Jun 2008 Link to this post

    OK.. this is strange. the 1st item in the list did not have this:

    SubMenuItem1 =

    New Telerik.Web.UI.RadMenuItem

    Althought the rest did.  this caused the last item item in the list to not show up.

  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 27 Jun 2008 Link to this post

    Hello Ryan,

    Please, review the attached page we created to test the case. Everything worked as expected on our side. If the problem persists, I suggest you open a support ticket and send us a small project yourself, which we can test locally. This would be the most efficient way to help you out with this case.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 25 Sep 2008 Link to this post

    I have the same problem.  I populate the menu from a database in a master page. The menu appears on various controls that are on the page default.aspx.
    Different menu items are loaded depending on who logs in.  For one type log in the menu gets 6 items and they all display correctly.  For another type log in the menu gets 10 items but only 9 display.  The last item does not display.  In debug mode I can see all 10 items in the item collection, but the last item does not display. 

    John
Back to Top