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

Central alignment of RadRibbonBarGroup in RibbonTab

3 Answers 35 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Duane
Top achievements
Rank 1
Duane asked on 22 Mar 2011, 06:39 PM
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.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Mar 2011, 05:21 PM
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
0
Duane
Top achievements
Rank 1
answered on 31 Mar 2011, 04:18 PM
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.
0
Peter
Telerik team
answered on 04 Apr 2011, 03:43 PM
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
Tags
RibbonBar
Asked by
Duane
Top achievements
Rank 1
Answers by
Peter
Telerik team
Duane
Top achievements
Rank 1
Share this question
or