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

menu that overflows, not wraps

3 Answers 265 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Eric Hill
Top achievements
Rank 1
Eric Hill asked on 05 Jan 2010, 12:57 PM
Hey,

I had a pre-sales question about RadMenu.  We have a need for a menu that overflows like the standard WPF toolbar instead of wrapping.  We have a lot of windows with menus on them, and the standard wrapping behavior causes the menu to take up too much space.  I was curious if RadMenu could overflow rather than wrapping.

Thanks,

Eric

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 06 Jan 2010, 08:05 AM
Hi Eric Hill,

Overflow is not possible with RadMenu.
Why don't you use RadToolbar instead?

Regards,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Eric Hill
Top achievements
Rank 1
answered on 06 Jan 2010, 05:56 PM
Hey, Hristo,

That's an interesting suggestion.  We actually tried putting the menu (as a whole) into the standard WPF toolbar, and we found that the entire menu overflowed together when the window got narrow, rather than the individual top-level items overflowing.  Would that be different with RadToolbar?  I would also be concerned about the menu still behaving in all other ways like a menu (keyboard support for example) if we put it into a toolbar, especially if we have to break it up into pieces before putting it into the toolbar.

Thanks,

Eric
0
Hristo
Telerik team
answered on 07 Jan 2010, 07:04 AM
Hello Eric Hill,

RadMenu placed in RadToolbar will overflow (the entire menu) like when placed in WPF Toolbar.
There will be no problems for keyboard navigation if the whole menu is placed in toolbar. But placing RadMenuItem directly in RadToolbar (or any other control) is scenario that is not supported. RadMenuItem needs to be placed in RadMenu in order to work properly.

My idea was to use RadToolbar as a Menu replacement. You can place different kind of controls in the toolbar to reassemble the menu.
Creating overflow behavior is not a trivial task and will require a lot of work to be done properly. Now you can bind the menu using ItemsSource and specify HierarchicalDataTemplate to specify individual MenuItem presentation. Using overflow will break this functionality. This is why we did not support it.

Let me know if you need more information.

Kind regards,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Eric Hill
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Eric Hill
Top achievements
Rank 1
Share this question
or