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

DataForm + RichTextBox sample

1 Answer 81 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Luc Cappaert
Top achievements
Rank 2
Luc Cappaert asked on 05 Sep 2013, 01:30 PM
Hi, I was wondering if there is a sample for the integration of RichTextBox in a DataForm?
I would like to use the RichTextBox as a replacement for a "normal" TextBox in a dataForm.

<telerik:DataFormDataField DataMemberBinding="{Binding Description, Mode=TwoWay}"

Label="Description:"

IsEnabled="True"

IsReadOnly="False"

Description="You can enter any information regarding this server in this field.">

<telerik:DataFormDataField.Content>

<telerik:RadRichTextBox x:Name="rtbDescription" Width="450" Height="200"></telerik:RadRichTextBox>

</telerik:DataFormDataField.Content>

</telerik:DataFormDataField>

I understand I'll have to capture certain events to keep the RichTextBox's document in sync with the bound property, and work with a FormatProvider to import/export the RichTextBox document into/from that property.

However, A sample would be much appreciated.

Thanks a lot

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 10 Sep 2013, 03:52 PM
Hello Luc,
We don't have such example available, but it should be straight forward, provided you use Data providers - components designed specifically to help binding RadRichTextBox. You can read more about them in this help article.

Don't hesitate to contact us if you have further questions.

Regards,

Boby
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DataForm
Asked by
Luc Cappaert
Top achievements
Rank 2
Answers by
Boby
Telerik team
Share this question
or