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

How to Bind richtextbox document property

1 Answer 177 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Naveen T
Top achievements
Rank 1
Naveen T asked on 28 Aug 2010, 12:15 PM
Hi

I am unable to bind the document property in the richtextbox( i am binding this way

Document

 

 

="{Binding Path=Description,Converter={StaticResource richTextConverter}}"

 

)  i am converter to convert the html Text to raddocument.My requirement is binding the content from DB using MVVM pattern.
Is there any alternative solution for this,at the same time, i should able to get the documant changed property,
can anyone reply to this post how to achieve this.

Regards,
Nav

1 Answer, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 30 Aug 2010, 01:09 PM
Hello nav kum,

Specifically for the MVVM pattern and other binding scenarios we have developed a few additional classes called TxtDataProvider, HtmlDataProvider, etc. More help on this one you can find here. Specifically for your need you'll need the HtmlDataProvider as your text is in the HTML format.
Feel free to get back to us if you need further assistance.

Greetings,
Ivailo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Naveen T
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or