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

Limited Number of Items on Dynamic Menu

5 Answers 55 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 26 Jun 2008, 07:31 PM

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?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Jun 2008, 06:43 AM
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
0
Randy
Top achievements
Rank 1
answered on 27 Jun 2008, 11:59 AM
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.
0
Randy
Top achievements
Rank 1
answered on 27 Jun 2008, 12:08 PM
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.

0
Peter
Telerik team
answered on 27 Jun 2008, 03:56 PM
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
0
John Davis
Top achievements
Rank 2
answered on 25 Sep 2008, 12:12 PM
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
Tags
Menu
Asked by
Randy
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Randy
Top achievements
Rank 1
Peter
Telerik team
John Davis
Top achievements
Rank 2
Share this question
or