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

Position controls in toolbar

1 Answer 98 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 18 Nov 2011, 11:15 PM
Hi

I have added a RadMenu to the toolbar which works well functionally.  However, I would like the menu to be aligned on the right side of the toolbar and would like to put other controls (Buttons) on the left side.  How can I do this?

Also, there is a icon on the left side of the toolbar  (a vertical list of periods).  How may I hide that icon?

Thanks
RIch

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 Nov 2011, 02:44 PM
Hello Richard Harrigan,

RadToolBar uses StackPanel in its default ControlTemplate and that is why it is not possible to align the RadMenu on the right side of the RadToolBar using HorizontalAlignment or HorizontalContentAlingment. The default RadToolBar's orientation is horizontal and a horizontal orientated StackPanel Width is measured based on the width of its children.

I have attached a sample project where you can see a possible approach for working around the problem with the RadMenu's alignment.

About the element with the vertical list of periods - the RadToolBar has a GripVisibility property that controls the visibility of the grip element and can be set it to "Collapsed" if you want to hide it.

Kind regards,
Stefan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ToolBar
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or