RadButtonEdit?

2 posts, 0 answers
  1. Morten
    Morten avatar
    3 posts
    Member since:
    Nov 2010

    Posted 14 Jan 2011 Link to this post

    Is there a Telerik version of a TextBox that can host a button within itself?

    Thanks.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 26 Jan 2011 Link to this post

    Hi Morten,

    We are very sorry for the delay in answering your question.
    Yes, there is a control that can host a button within itself - RadRichTextBox. You can read more about it in our online help. It can enclose UI elements with the help of inline UI containers. 
    Here is how the XAML looks:

    <telerik:RadRichTextBox Name="radRichTextBox" IsSelectionMiniToolBarEnabled="False" IsContextMenuEnabled="False" >
        <telerik:RadDocument>
            <telerik:Section>
                <telerik:Paragraph>
                    <telerik:InlineUIContainer Height="25" Width="70">
                        <Button Name="button" Content="Button" />
                    </telerik:InlineUIContainer>
                </telerik:Paragraph>
            </telerik:Section>
        </telerik:RadDocument>
    </telerik:RadRichTextBox>
     You need to add a reference to Telerik.Windows.Documents and define the telerik namespace as follows:
    Let us know if you need further assistance in using RadRichTextBox.

    On a side note, if you only need a button in a TextBox and you don't really need any rich text or any other feature of the rich text box, you can follow the approach described in this article for example or do some research of your own.
    If you have other questions, do not hesitate to contact us again.

    Kind regards,
    Iva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top