DataForm + RichTextBox sample

2 posts, 0 answers
  1. Luc Cappaert
    Luc Cappaert avatar
    7 posts
    Member since:
    Jun 2005

    Posted 05 Sep 2013 Link to this post

    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

  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 10 Sep 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top