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

Display the RichTextBox Document in another control

1 Answer 39 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
mahdi gh
Top achievements
Rank 1
mahdi gh asked on 26 Sep 2011, 11:26 AM
Hi
Consider we have a page that user types in a RichTextBox and i save it into DB. now i want to display the text in a control except RichTextBox. like RadGridView or something like TextBlock
Please Help me

1 Answer, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 28 Sep 2011, 06:46 PM
Hi Mahdi Gh,

You cannot use RadDocument with any other control but RadRichTextBox.
However, you can implement your scenario in two ways:
1. Use the exported document (which can be an HTML string or an RTF string for example) with some other control that is able to show rich text.
2. You can have RadRichTextBoxes in RadGridView by creating a DataTemplate with RadRichTextBox. You can also restrict editing in the control by setting its IsReadOnly property to true. 

All the best,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
mahdi gh
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or