Ribbonbar Start Menu Design Issue

5 posts, 1 answers
  1. Vijay Kumar Vegulla
    Vijay Kumar Vegulla avatar
    14 posts
    Member since:
    Apr 2010

    Posted 01 Mar 2011 Link to this post

    Dear All,

    Thanks for the support you people have been giving in solving my puzzles. I have a small problem with the ribbon bar start menu area.
    In that I have placed a menu item with 5 t0 8 sub items in it. There my problem arises. This sub items panel is bigger than my actual area. Please see the attached screen shot to understand better.

    Thanks in advance.

    Vijay
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 01 Mar 2011 Link to this post

    Hello Vijay,

    That is a different context menu, the items in the right are not being replaced by the items in the submenu when you are hovering with the mouse, if you would like to "fake" this kind of behavior you should control the popup size when hovering over the menu item.

    If you want to do this just let me know and i will try to provide an example on how to do this.

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
    Telerik WinForms MVP
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Vijay Kumar Vegulla
    Vijay Kumar Vegulla avatar
    14 posts
    Member since:
    Apr 2010

    Posted 02 Mar 2011 Link to this post

    Hi Emanuel Varga,

    Yes I want to reduce the width of the popup context menu to look like not exceeding the start menu width. Please give me the example. I am looking for it.

    Thank you
  5. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 02 Mar 2011 Link to this post

    Hello again Vijay,

    Please take a look at the following example:

    foreach (RadMenuItem item in radRibbonBar1.StartMenuItems)
    {
        item.DropDown.MaximumSize = new Size(300, 0);
    }

    It's a very basic example but it will achieve the desired behavior.

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
    Telerik WinForms MVP
  6. Vijay Kumar Vegulla
    Vijay Kumar Vegulla avatar
    14 posts
    Member since:
    Apr 2010

    Posted 03 Mar 2011 Link to this post

    Hi,

    It hasn't worked Emanuel Varga. It is throwing an object reference exception. What might be the problem. Please let me know.

    Thanks
    vijay
Back to Top
UI for WinForms is Visual Studio 2017 Ready