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

Adding TextBox in a particular chunk

1 Answer 70 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
lamees
Top achievements
Rank 1
lamees asked on 07 Jan 2008, 02:43 PM
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

Sort by
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:

  1. You can not select the text in the textbox using the mouse

  2. 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.

Sincerely yours,

Nikolay
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
RibbonBar
Asked by
lamees
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or