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

Panel and Separators for OverFlowButton showing

2 Answers 61 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 16 May 2014, 08:07 PM
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 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 May 2014, 08:09 AM
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.
 
0
Ken
Top achievements
Rank 1
answered on 20 May 2014, 02:01 PM
Thank you Stefan, that works!

Greg
Tags
CommandBar
Asked by
Ken
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Ken
Top achievements
Rank 1
Share this question
or