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

2 posts, 0 answers
  1. Shiv
    Shiv avatar
    9 posts
    Member since:
    Apr 2012

    Posted 10 May 2012 Link to this post


    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.

  2. Ivailo Karamanolev
    Ivailo Karamanolev avatar
    276 posts

    Posted 11 May 2012 Link to this post


    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 >>

Back to Top