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.


  2. Stefan
    Stefan avatar
    2911 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.

    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. 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!

Back to Top