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

What's the TxtDataProvider for?

1 Answer 105 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 23 Apr 2013, 03:11 PM
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.)

1 Answer, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 25 Apr 2013, 07:56 AM
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.

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