Adding TextBox in a particular chunk

2 posts, 0 answers
  1. lamees
    lamees avatar
    56 posts
    Member since:
    Jul 2006

    Posted 07 Jan 2008 Link to this post

    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
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 09 Jan 2008 Link to this post

    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);        
    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,

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top