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

Your Support Tickets DocumentChanged event did not fire in RadRichTextBox.

1 Answer 113 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Maciej
Top achievements
Rank 1
Maciej asked on 11 Apr 2018, 12:11 PM

I would like to catch TextChanged from RadRichTextBox, i checked and that event did not exist. So i tried to use DocumentChanged, but it did not fire too, when im typing text in rtb.

 

01.<telerik:RadRichTextBox HorizontalScrollBarVisibility="Auto" MinHeight="80" VerticalScrollBarVisibility="Auto"
02.                         x:Name="Rtb"
03.                         Background="White" AcceptsTab="True" Loaded="Rtb_Loaded" FontSize="12"
04.                         IsEnabled="{Binding CanEdit, UpdateSourceTrigger=PropertyChanged}">
05.                <i:Interaction.Triggers>
06.                    <i:EventTrigger EventName="DocumentChanged">
07.                        <i:InvokeCommandAction Command="{Binding DocumentChangedCommand}"
08.                                               CommandParameter="{Binding ElementName=Rtb, Path=Document}" />
09.                    </i:EventTrigger>
10.                </i:Interaction.Triggers>
11.            </telerik:RadRichTextBox>

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 12 Apr 2018, 02:42 PM
Hi Maciej,

I posted the reply in the support ticket you have opened but I am pasting it here as well in case anyone else encounters the question.

"The DocumentChanged event fires when you change the RadDocument instance in RadRichTextBox with another RadDocument instance or, in other words, when a new document is opened in the control. To track changes in the content, you can use the DocumentContentChanged event. More information on this topic you can find in the Events article from our documentation."

Regards,
Tanya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RichTextBox
Asked by
Maciej
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or