Read RichTextBox content

2 posts, 0 answers
  1. Chris Thierry
    Chris Thierry avatar
    138 posts
    Member since:
    Jun 2010

    Posted 09 Aug 2011 Link to this post

    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.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 12 Aug 2011 Link to this post

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

  3. DevCraft banner
Back to Top