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

DocumentContentChanged event missing OriginalSource OriginalSourceText

3 Answers 69 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 21 Dec 2010, 03:51 PM
Hi,

The DocumentContentChanged event does not contain an OriginalSource property in its EventArgs.

I used to get the OriginalSource from MS RichTextBox using its ContentChanged event.

Is there any Alternative in RadRichTextBox ?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 23 Dec 2010, 11:16 AM
Hi Joseph,

What were you retrieving in this way? There is no direct parallel between MS RichTextBox and our RadRichTextBox. If you elaborate a little bit more on your scenario and the case you need to know the original source of the changes, we might be able to help you more.

All the best,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Joseph
Top achievements
Rank 1
answered on 23 Dec 2010, 11:19 AM
Hi,

I just want to retreive the original Text before the change in the RichTextBox has been made.

I didn't find any property that returns the old text.

Thanks.
0
Iva Toteva
Telerik team
answered on 28 Dec 2010, 02:11 PM
Hello Joseph,

RadRichTextBox does not provide an option to retrieve the old value, but you can easily implement this logic on your side, by keeping a field or property, which you update every time the ContentChanged event is fired. The property can be of type string (the exported document as XAML or HTML for example) or RadDocument (by cloning the document when it's changed).
If you meet any difficulties implementing this scenario, do not hesitate to contact us again.

Kind regards,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
RichTextBox
Asked by
Joseph
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Joseph
Top achievements
Rank 1
Share this question
or