Position controls in toolbar

2 posts, 0 answers
  1. Richard Harrigan
    Richard Harrigan avatar
    235 posts
    Member since:
    Nov 2009

    Posted 18 Nov 2011 Link to this post

    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
  2. Stefan
    Admin
    Stefan avatar
    89 posts

    Posted 23 Nov 2011 Link to this post

    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 >>
  3. DevCraft banner
Back to Top