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

Read RichTextBox content

1 Answer 45 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Chris Thierry
Top achievements
Rank 1
Chris Thierry asked on 09 Aug 2011, 04:38 PM
Hi,
I'm using this control to create an HTML email text in background mode, is this the right control to do this?,
I need to be sure that my email text is encoding and using some text in bold and different font side. I'm using Silverlight 4 with RIA Services, how can I read the content of my whole text in this control?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 12 Aug 2011, 02:47 PM
Hello Chris Thierry,

It sounds like RadRichTextBox will fit the needs of your application. If you haven't checked up on the online demos, you can do so here.
As the control can persist its contents in different file formats, it uses format providers to import and export data. More on this can be found in our onlilne documentation. You can pay special attention to HtmlFormatProvider, the Import and ExportSettings it exposes and the supported HTML tags. You should have in mind, though, that HTML is rather different from the internal format of RadDocument and some differences when showing the document in the rich text box and the exported HTML in a browser are unavoidable.
When it comes to data-binding, you can use HtmlDataProvider to bind the contents of your document. There is a demo using XamlDataProvider here (Mike's post from Aug 17 2010), which you can use as reference.

Kind regards,
Iva
the Telerik team

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

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