What's the TxtDataProvider for?

2 posts, 1 answers
  1. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 23 Apr 2013 Link to this post

    I'm new to using the RadRichTextBox control. I want to bind it to a plain text field in our database. To get an idea as to what it's about I decided to create a new WPF project and just drag the RadRichTextBox onto the window (no database is involved). When I did, I looked at the XAML and saw the RadRichTextBox control, but under it a TxtDataProvider control. What's the TxtDataProvider for? (Yes, I've looked it up, found the definition of the class, etc., but that doesn't give me a feel for what it's there for or why I would need it.)
  2. Answer
    Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 25 Apr 2013 Link to this post

    Hi Rod,

    DataProviders are the mechanism that RadRichTextBox uses to bind its content to string properties in different formats. TxtDataProvider in particular is used to bind the document to a plain text string.

    For more information on data providers, please refer to this article.

    All the best,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top