Hello everyone,
I want to add a TextBox in a particular chunk in my RibbonBar control. I read a post on how to add a TextBox to a RibbonBar but I couldn't add it to a particular chunk. Is there anyway to do that?
Thank you
1 Answer, 1 is accepted
0
Nikolay
Telerik team
answered on 09 Jan 2008, 11:56 AM
Hi lamees,
You can add a RadTextBox to a particular chunk, just refer to the following code snippet:
RadTextBox radTextBox = new RadTextBox();
RadHostItem hostItem = new RadHostItem(radTextBox);
this.radRibbonBarChunk1.Items.Add(hostItem);
radTextBox.Size = new Size(100, 20);
radTextBox.ThemeName = "ControlDefault";
Currently, we have some issues when adding a RadTextBox to a RibbonBarChunk:
You can not select the text in the textbox using the mouse
When you hover the mouse pointer over the textbox, its backcolor changes to a color adopted from the RadRibbonBar theme.
We are sorry for the inconvenience and can assure you that these will be addressed in one of our future releases.
Should you have additional questions, do not hesitate to contact us.