How to use RadRichTextbox in Silverlight

2 posts, 0 answers
  1. Vuyiswa
    Vuyiswa avatar
    223 posts
    Member since:
    Jan 2010

    Posted 11 Jan 2011 Link to this post

    Good Day All 

    I used RadRichtextbox in my 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

  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 13 Jan 2011 Link to this post

    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,
    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