DocumentContentChanged event missing OriginalSource OriginalSourceText

4 posts, 0 answers
  1. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 21 Dec 2010 Link to this post

    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.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 23 Dec 2010 Link to this post

    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
  3. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 23 Dec 2010 Link to this post

    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.
  4. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 28 Dec 2010 Link to this post

    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
Back to Top