This question is locked. New answers and comments are not allowed.
Hello,
how can I bind a RichTextBox to a database / object?
I've tried this:
http://www.telerik.com/help/silverlight/radrichtextbox-how-to-binding-to-data-providers.html
The saving (to the object/db) of the RichTextBox contents works fine. (HTML and XAML).
But I cannot load the context from the database.
The RichTextbox remains blank.
Any ideas?
Thank you!
<documents:RadRichTextBox Name="richTextBox"/>
how can I bind a RichTextBox to a database / object?
I've tried this:
http://www.telerik.com/help/silverlight/radrichtextbox-how-to-binding-to-data-providers.html
The saving (to the object/db) of the RichTextBox contents works fine. (HTML and XAML).
But I cannot load the context from the database.
The RichTextbox remains blank.
Any ideas?
Thank you!
xmlns:documents="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"
xmlns:documentsHtml="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
<UserControl.Resources>
<documentsHtml:HtmlDataProvider x:Key="xamlDataProvider"
RichTextBox="{Binding ElementName=richTextBox}"
Html="{Binding Item.Comment, Mode=TwoWay}" />
</UserControl.Resources>
<documents:RadRichTextBox Name="richTextBox"/>