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

[Solved] main menu scroll

5 Answers 172 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Sally
Top achievements
Rank 1
Sally asked on 21 Apr 2009, 04:03 AM
Hi there,

I use RadMenu to my website and it works very well. Now I notice that when I add more menu items to main menu line, they will go to second line. I know it's because I fix the width of the radmenu. The problem is that if I could set width - horizontal scrolling property at main menu level? Cause I don't wanna some of the menu items go to second line.

Any idea about that? Thanks ahead for any help!

Sally 

5 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Apr 2009, 07:45 AM
Hello Sally,

I suggest you set EnableRootItemScroll property of RadMenu to true in order to allow root items to be scrolled.

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sally
Top achievements
Rank 1
answered on 21 Apr 2009, 02:42 PM
Thanks Yana! I will try this property.
0
Sally
Top achievements
Rank 1
answered on 22 Apr 2009, 04:04 AM
Hi Yana,

I tried this property but it doesn't work. Is it a new property of radmenu? Actually I didn't use the newest version of radmenu and most of my top menu items have drop down submenus. Is it the reason?

Here is my code:

<radM:RadMenu id="RadMenu2" EnableRootItemScroll="true" width="930px" runat="server"

skin="Radium" EnableScreenBoundaryDetection="false"  RadControlsDir="~/RadControls"></radM:RadMenu>


And I use databind menu.

Thanks a lot for any suggestion,

Sally
0
Princy
Top achievements
Rank 2
answered on 22 Apr 2009, 04:30 AM
Hello Sally,

If your using the older version of RadMenu, the EnableRootitemScroll property wont be available. You can try upgrading to the latest version (Q1 2009) to achieve the required functionality. To upgrade to the latest version refer to the following kb article:
Updating RadControls for ASP.NET to another version or license

If you want to continue using the older version then a suggestion would be to place the menu in a div and set scrolling for the div. Simultaneously, you can also prevent the wrapping of the root items. Refer to the following kb article to prevent wrapping of root items:
Avoiding wrapping of root menu items

Thanks
Princy.
0
Sally
Top achievements
Rank 1
answered on 23 Apr 2009, 04:50 AM
Thanks Princy! I tried your second way to set a scroll bar for root menu and got 2 problems here.

One is that I use ascx file that is included to my main default page. This ascx file is like top file including banner and radmenu code. According to the link of Avoiding wrapping of root menu items you gave me, I don't know where should I add these javascript coding to my ascx file cause this file is not a real html file and it has no html / form tags.

Other problem is I tried to copy all ascx coding to my default page and add all those javascript coding from link Avoiding wrapping of root menu items. Root menu scroll works and no wrapping but dropdown menu disappears.

Thanks for any help and best regards,

Sally
Tags
Menu
Asked by
Sally
Top achievements
Rank 1
Answers by
Yana
Telerik team
Sally
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or