Panel and Separators for OverFlowButton showing

3 posts, 0 answers
  1. Ken
    Ken avatar
    6 posts
    Member since:
    Mar 2014

    Posted 16 May 2014 Link to this post

    I would like to eliminate the Panel and Separator items that load underneath the OverFlowButton.DropDownMenu when I set the following values:
                    strip.OverflowButton.AddRemoveButtonsMenuItem.Visibility = ElementVisibility.Collapsed;
                    strip.OverflowButton.CustomizeButtonMenuItem.Visibility = ElementVisibility.Collapsed;

    I find that if I set the above to Hidden, the Panel and Separator still show, but full size.   If I set them to Collapsed, they are shorter in size, which is better, buy my goal is to eliminate them altogether.

    Please see the result in the attachment.

    Thanks,

    Laura
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 19 May 2014 Link to this post

    Hello Greg,

    Thank you for writing.

    To do that, you can just iterate the collection and hide the items you do not need:
    foreach (RadElement item in radCommandBar1.Rows[0].Strips[0].OverflowButton.DropDownMenu.Items)
    {
        item.Visibility = ElementVisibility.Collapsed;
    }

    I hope this helps.

    Regards,
    Stefan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ken
    Ken avatar
    6 posts
    Member since:
    Mar 2014

    Posted 20 May 2014 in reply to Stefan Link to this post

    Thank you Stefan, that works!

    Greg
Back to Top