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

Right align Chunks in RadRibbon

4 Answers 47 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
me
Top achievements
Rank 1
me asked on 24 Jun 2008, 10:10 PM
I tried to right align the chunks in the RadRibbon.. but only got them to reverse their order, still all the chunks are left aligned.. can you help?

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Jun 2008, 11:10 AM
Hi me,

Thank you for your interest in RadRibbonBar.

The RadRibbonBar is not designed to allow right-aligned RibbonBar chunks. The RadRibbonBar merely provides the best arrangement of the chunks from left to right for every possible size of the application window.

I hope this helps. If you have any other questions, please contact me.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
me
Top achievements
Rank 1
answered on 25 Jun 2008, 10:11 PM
Isn't there any workaround/hack to at least simulate the right to left alignment? like umm.. adding an invisible chunk to fill the space on the left?
0
Accepted
Nikolay
Telerik team
answered on 26 Jun 2008, 04:05 PM
Hello,

There are two workarounds which I can suggest in order to make your chunks right-aligned. I would recommend using the second one:
  1. As per your proposal, you can add several chunks and set their Visibility property to Hidden. Please note that you should do it in the Form_Shown or at a later moment of your application cycle:
    private void Form1_Shown(object sender, EventArgs e)  
    {  
        this.radRibbonBarChunk1.Visibility = Telerik.WinControls.ElementVisibility.Hidden;  
        this.radRibbonBarChunk2.Visibility = Telerik.WinControls.ElementVisibility.Hidden;  
  2. RadRibbonBarChunks are hold by a StackLayoutPanel. You should set its Alignment property to TopRight:
    ((StackLayoutPanel)this.radRibbonBarChunk1.Parent).Alignment = ContentAlignment.TopRight; 

If you have additional questions, feel free to contact me. 

All the best,

Nikolay
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
0
me
Top achievements
Rank 1
answered on 27 Jun 2008, 12:23 AM
Worked like a charm.. you're the best :)
Tags
RibbonBar
Asked by
me
Top achievements
Rank 1
Answers by
Peter
Telerik team
me
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or