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

DocumentContentChanged event not firing

3 Answers 120 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jose Luis
Top achievements
Rank 1
Jose Luis asked on 21 Sep 2011, 04:01 PM

Hello,

We rely on the DocumentContentChanged event to know when the document has been modified. So far it has served well this purpose. Now, we allow the user to set table properties through the ShowTablePropertiesDialog method. When we change the "Spacing between cells" property and we close the dialog the change is applied to the table but the event doesn't fire.

Is there some other way to be notified of changes in the document that takes into account this property change?

Thank you very much.

Version: Telerik RadControls for Silverlight 4 Q1 2011
 

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 23 Sep 2011, 01:03 PM
Hi Jose Luis,
We are aware of this issue. It has already been fixed in Q2 2011 version of the controls.

Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
muhammad
Top achievements
Rank 1
answered on 20 Jul 2012, 04:50 PM
Hi Telerik team,
                        The logged issue works only if you start editing to new document. But for existing document if you load it and try to edit the document it does not fires the event. Can you please provide some work around for it. I am using 2012 V2 WPF controls. Thanks

Regards.
Muhammad Saqib.
0
Nikolay Demirev
Telerik team
answered on 26 Jul 2012, 12:34 PM
Hi Muhammad,

When you attach event handler to RadDocument.DocumentContentChanges and then load another document the event handler stays hooked up to old document's event. That is why the event handler is not executed. A solution for this issue is to use the RadRichTextBox.DocumentContentChanged event which raises even when the document has been changed.



Greetings,
Nikolay Demirev
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Jose Luis
Top achievements
Rank 1
Answers by
Boby
Telerik team
muhammad
Top achievements
Rank 1
Nikolay Demirev
Telerik team
Share this question
or