Put RibbonBarGroup On the Right Side

6 posts, 0 answers
  1. Kevin
    Kevin avatar
    4 posts
    Member since:
    Nov 2008

    Posted 29 Apr 2010 Link to this post

    How can I put one RibbonBarGroup on the right side of RibbonBar?

    Thanks,
    Kevin
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 04 May 2010 Link to this post

    Hello Kevin,

    Thanks for writing.
     
    RadRibbonBar does not support such functionality, because the Collapsing Layout of RibbonBar is not designed to have a right aligned group. Please, excuse us for the inconvenience.  Don't hesitate to contact us if you have other questions.


    Kind regards,
    Peter
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kevin
    Kevin avatar
    4 posts
    Member since:
    Nov 2008

    Posted 04 May 2010 Link to this post

    Thanks for the explanation, Peter.

    The requirement is not must-have in our application. So we just keep the ribbon bar group as it is.

  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 05 May 2010 Link to this post

    Hi Kevin,

    Thank you for getting back to me, and please accept our apologies for the missing feature.

    All the best,
    Peter
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Anu
    Anu avatar
    1 posts
    Member since:
    Feb 2015

    Posted 04 Feb 2015 Link to this post

    Can we put RibbonBarButton on Right Side of RibbonBar
  7. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 06 Feb 2015 Link to this post

    Hello Anu,

    Thank you for writing.

    If I understand your requirement correctly you are trying to insert a button on the right side of the RibbonBarElement next to the expand button. In order to achieve it you can use the following code snippet:
    public Form1()
    {
        InitializeComponent();
     
        RadImageButtonElement button = new RadImageButtonElement();
        button.ButtonFillElement.BackColor = Color.Transparent;
        button.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
        button.Class = "RibbonBarExpandButton";
        button.Click += button_Click;
        button.Image = Properties.Resources.crop;          
        button.Padding = new Padding(2, 0, 2, -2);
        button.Margin = new Padding(0, 0, 0, 0);
        this.radRibbonBar1.RibbonBarElement.ButtonsContainer.Children.Insert(0, button);
    }
     
    private void button_Click(object sender, EventArgs e)
    {
        //TODO
        RadMessageBox.Show("Click");
    }

    If it is not the exact requirement please specify in details what  you are trying to accomplish. Thus, we would be able to assist you further. 

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Dess
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready