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

How to use RadRichTextbox in Silverlight

1 Answer 143 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 11 Jan 2011, 10:49 AM
Good Day All 

I used RadRichtextbox in my asp.net project and i could save the Data that has been entered as html and retrieve it and bind a grid with those tags and it was nice.

 Now what i want is very simple. 

In my Silverlight Application i want to display a ducument that is formated in html. This document is in my application directory and i want to bind the RichTextbox with the html contents and the Richtextbox should format the document according to the html formating provided in the html document. 

I tried the examples. but they were no clear for me, i imported the namespaces required and i could not reproduce even a simple example in the demo examples

Thanks 

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 13 Jan 2011, 09:06 AM
Hello Vuyiswa Maseko,

 I have prepared a small demo illustrating how you can bind the content of RadRichTextBox using HtmlDataProvider. Note that the ViewModel does not implement INotifyPropertyChanged and two-way binding will not work, but if you implement it, everything should work OK. (The contents of the file cannot be automatically changed, due to Silverlight Security policy with regard to file opening and saving.)

If you want to use RadRichTextBox with RIA services, there is a sample project in the last post of this forum thread. Take a look at it for starters, and if you are not able to adapt it for your project, you can send a demo, so that we can help you further.

If that does not answer your question, 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
RichTextBox
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Iva Toteva
Telerik team
Share this question
or