We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Richtextbox and databinding

Hi,

is it possible to have Twoway databinding with the richtextbox control ?

1 Reply

NS Narendran Srinivasan Syncfusion Team April 6, 2015 01:33 PM UTC

Hi Issam,

Thanks for choosing Syncfusion products,

At this moment our RichTextBoxAdv control does not have support for two binding. But two way binding can achieve using command for setting and property for retrieving the style. For your reference we have prepared a sample to illustrate the same. Please find the sample from below link.

Code Snippet:
<ToggleButton syncfusion:ToolBarAdv.Label="Bold" Command="syncfusion:RichTextBoxAdv.ToggleBold" CommandTarget="{Binding ElementName=rte}" IsChecked="{Binding Path=CurrentInlineStyle.FontWeight, Converter={StaticResource FontWeightToChecked}, Mode=TwoWay, ElementName=rte}" Height="22" Width="22"/>

Sample link:
Sample

Please let me know if you have any other questions

Regards,
Narendran


Loader.
Live Chat Icon For mobile
Up arrow icon