Add new button on Title bar of RadRibbonForm

2 posts, 0 answers
  1. nguyen
    nguyen avatar
    5 posts
    Member since:
    Oct 2014

    Posted 17 Oct 2014 Link to this post


    Is there any way to add a button on title bar of RadRibbonForm or a textbox like the image below?

    Thanks & Regards,
  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3321 posts

    Posted 22 Oct 2014 Link to this post

    Hello Nguyen,

    Thank you for writing.

    You can achieve your requirement by inserting the desired search box in the RibbonBarElement.RibbonCaption.SystemButtons.Children collection. Here is a sample implementation:
    public Form1()
        this.AllowAero = false;
        RadTextBoxElement tb = new RadTextBoxElement();
        tb.MinSize = new System.Drawing.Size(200, 0);
        RadButtonElement button = new RadButtonElement();
        button.ButtonFillElement.BackColor = Color.Transparent;
        button.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
        button.ShowBorder = false;
        button.Image = Properties.Resources.zoom;
        button.Padding = new Padding(2, 0, 2, -2);
        button.Margin = new Padding(0, 0, 0, 0);
        StackLayoutElement stackPanel = new StackLayoutElement();
        stackPanel.Orientation = Orientation.Horizontal;
        stackPanel.Margin = new Padding(1, 0, 1, 0);
        RadTextBoxItem tbItem = tb.TextBoxItem;
        tbItem.NullText = "Quick Launch (Ctrl+Q)";
        DockLayoutPanel dockPanel = new DockLayoutPanel();
        DockLayoutPanel.SetDock(tbItem, Telerik.WinControls.Layouts.Dock.Left);
        DockLayoutPanel.SetDock(stackPanel, Telerik.WinControls.Layouts.Dock.Right);
        this.radRibbonBar1.RibbonBarElement.RibbonCaption.SystemButtons.Children.Insert(0, tb);
    private void button_Click(object sender, EventArgs e)

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

    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