Adding a RadButtonTextBox to Status or Ribbon Bar

1 Answer 52 Views
Top achievements
Rank 1
Monique asked on 15 Jun 2023, 04:53 PM
Is there a way to add a ButtonTextBox to the status or ribbon bars?   I'm trying to create a fast way for users to open a form that requires parameters.   Rather than popping a form just to ask for the parameters, I'm hoping to I could have someplace in a tool bar -- much the way that there is a URL bar on your browser to put your search parameters which it passes to your search engine.

1 Answer, 1 is accepted

Sort by
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Jun 2023, 08:19 AM

Hi, Monique,

I have prepared a sample code snippet demonstrating how to add a RadButtonTextBoxElement in RadStatusStrip:

            Dictionary<int, string> glyphs = new Dictionary<int, string>();
            List<RadButtonElement> buttons = new List<RadButtonElement>();
            glyphs.Add(0, ""); //yammer 
            glyphs.Add(1, ""); //twitter 
            glyphs.Add(2, ""); //pinterest 
            glyphs.Add(3, ""); //google 
            glyphs.Add(4, ""); //facebook 
            glyphs.Add(5, ""); //linkedin 
            glyphs.Add(6, "\ue817"); //Reddit 
            glyphs.Add(7, "\ue81d"); //Tumbler 
            glyphs.Add(8, "\ue813"); // MySpace 
            for (int i = 0; i < 9; i++)
                RadButtonElement radButtonElement = new RadButtonElement();
                radButtonElement.DisplayStyle = Telerik.WinControls.DisplayStyle.Text;
                radButtonElement.TextElement.CustomFont = "TelerikWebUI";
                radButtonElement.TextElement.CustomFontSize = 10;
                radButtonElement.TextElement.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
                radButtonElement.Text = glyphs[i];
            RadButtonTextBoxElement b = new RadButtonTextBoxElement();
            b.RightButtonItems.AddRange(buttons[0], buttons[1], buttons[3], buttons[4]);
            b.LeftButtonItems.AddRange(buttons[5], buttons[6], buttons[7], buttons[8]);
            b.AutoSize = false;
            b.Size = new System.Drawing.Size(300, 25);
            b.Text = ""; 


A similar approach can be used for adding it to a ribbon group: 


I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Top achievements
Rank 1
commented on 06 Jul 2023, 08:40 PM

Thanks very much for your helpful reply.
Asked by
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question