menu that overflows, not wraps

4 posts, 0 answers
  1. Eric Hill
    Eric Hill avatar
    7 posts
    Member since:
    Jan 2010

    Posted 05 Jan 2010 Link to this post

    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
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 06 Jan 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Eric Hill
    Eric Hill avatar
    7 posts
    Member since:
    Jan 2010

    Posted 06 Jan 2010 Link to this post

    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
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 07 Jan 2010 Link to this post

    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.
Back to Top