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

RadButtonEdit?

1 Answer 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 1
Morten asked on 14 Jan 2011, 08:27 PM
Is there a Telerik version of a TextBox that can host a button within itself?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 26 Jan 2011, 09:35 AM
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>>
Tags
General Discussions
Asked by
Morten
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or