Hello am using RichTextBox and the htmldataprovider for binding directly to a property on a db entity.
<telerikHtml:HtmlDataProvider Name="htmlDataProvider" RichTextBox="{Binding ElementName=radRichTextBox}" Html="{Binding Entity.HtmlProperty,Mode=TwoWay}" />
My Entity.HtmlProperty can allready contain html text data to be displayed so i need to be a two way binding.
My problem:
RichTextBox is not present in the visual tree initially by the application page. it gets presented in a slide in panel on demand.
Meaning the data of my existing property is loaded before the RichTextBox is presented
Due to slow loading of the RichTextBox or some other reason my existing data content gets replaced by RichTextBox empty html content(even if nothing is typed, there still is a bunch of html code)
Is there any non dirty way to resolve this probem?
(one option I can think of is to is to trap the loaded event and add the binding to the HtmlDataProvider in code, but am not sure how to do this?)