Central alignment of RadRibbonBarGroup in RibbonTab

4 posts, 0 answers
  1. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 22 Mar 2011 Link to this post

    Hi Guys,

    I wonder if anyone can help? We are converting our application to use the Telerik RibbonBar (2009 Q2) and a request has come through for the groups to be centrally aligned in the tabs rather than to the left. I have had a play about with all of the alignment properties I can find for the RadRibbonBarGroup objects and the RibbonTab objects, but I can not get the groups to do anything but 'float' to the left.

    Is there a way to align them centrally?

    Any help appreciated.

    Best regards,
    Duane.
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 25 Mar 2011 Link to this post

    Hi Duane,

    Thank you for the writing.

    RadRibbonBar does not support such functionality, because RibbonBar's layout is performed in the ExpandableStackLayout class that always align items to the left.
    You could try to work around this by setting Margin for this group. for example:

    protected override void OnSizeChanged(EventArgs e)
    {
                base.OnSizeChanged(e);
                 this.radRibbonBarGroup1.Margin = new Padding(this.Size.Width / 2 , 2, 2, 2);
    }
    Please refer to the attached sample project.

    Q2 2009 is an old version and we do not support it and recommend that your try our latest release Q1 2011, which we released earlier this week.

    Kind regards,
    Peter
    the Telerik team
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Duane
    Duane avatar
    37 posts
    Member since:
    Sep 2010

    Posted 31 Mar 2011 Link to this post

    Hi Pete,

    Thanks for the suggested solution. We will probably look at that technique.

    With regards to upgrading we simply cannot upgrade at this moment due to the size of the project. (500+ forms). But thanks for teh suggestion.

    Best regards,
    Duane.
  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 04 Apr 2011 Link to this post

    Hello Duane,

    Let me know you need further assistance or if this approach does not meet the desired requirements.

    Kind regards,
    Peter
    the Telerik team
Back to Top