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

Two way binding not working with radrich textbox . Help !!

1 Answer 75 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Shiv
Top achievements
Rank 1
Shiv asked on 10 May 2012, 11:16 PM
avatar

Posted 32 minutes ago (permalink)

<html:HtmlDataProvider x:Name="htmlDataProvider" Html="{Binding Body,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" RichTextBox="{Binding ElementName=BodyText}"/>
           
<telerik:RadRichTextBox x:Name="BodyText" Grid.Row="1" HorizontalAlignment="Stretch" IsSpellCheckingEnabled="True"
                                    AcceptsReturn="True" IsReadOnly="{Binding LockEditControls}" VerticalScrollBarVisibility="Auto" />

I'm able to get the values on load but when when I saving something off from the rixhtextbox. Nothing is getting saved.

1 Answer, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 11 May 2012, 12:07 PM
Hi,

We haven't experienced any such issues with this version of the controls. Yours may be due to a specific case or scenario. You can try to use our new approach (although yours is still supported) using attached properties. You can use that like that:

<telerik:RadRichTextBox .... telerikHtml:HtmlDataProvider.Source="{Binding TargetProperty Mode=TwoWay}" />
You can try removing all other binding properties except Mode=TwoWay in order to see if they're not causing the problem.
If that doesn't solve the issue, please try sending us a demo project or a better explanation of the exact steps to reproduce and the observed and expected results.
Looking forward to your reply.

Kind regards,
Ivailo Karamanolev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Shiv
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or