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
    Admin
    Nikolay avatar
    1803 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);        
    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top