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

GroupSettings-Width in code behind

4 Answers 14 Views
Menu
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 23 Jul 2015, 09:19 PM

Hi,

 i have a horizontal menu that I would like to restrict to a fixed width and not wrap around, it seem that the  GroupSettings-Width should do the trick. How do I set the  GroupSettings-Width property on the radmenu that I am building in the code behind?

I'm guessing the property is GroupSettings.Width = Unit.Pixel(750), but on what am I setting this property?

 

thanks

4 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 24 Jul 2015, 08:53 AM
Hi David,

You need to specify on which item you want to add this group setting. For example:
RadMenu1.FindItemByText("Item 1").GroupSettings.Width = 700;

If you want to set GroupSettings on all RadMenuItems, you can use DefaultGroupSettings of RadMenu:
RadMenu1.DefaultGroupSettings.Width = 700;

Hope this will be helpful.

Regards,
Aneliya Petkova
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
david
Top achievements
Rank 1
answered on 24 Jul 2015, 12:22 PM

Thank you, but perhaps I did not explain what I wanted, the first example here is what I need (root item scroll ?) 

http://demos.telerik.com/aspnet-ajax/menu/examples/multicolumnmenu/defaultcs.aspx

 

 

0
david
Top achievements
Rank 1
answered on 24 Jul 2015, 02:07 PM
duh, its really simple "EnableRootItemScroll"
0
Aneliya Petkova
Telerik team
answered on 27 Jul 2015, 08:57 AM
Hi david,

Yes, that's correct - if you need to show a scroll on the root RadMenuItems, you must set Width of the RadMenu and EnableRootItemScroll="true".

Regards,
Aneliya Petkova
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Menu
Asked by
david
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
david
Top achievements
Rank 1
Share this question
or