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

RadEditor TextChanged event not firing

2 Answers 171 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 30 Oct 2008, 04:56 PM
Hey All,

I am using the RadEditor control (the most recent version) and have implemented a custom toolbar button with a custom dialog.  The controls TextChanged event was working just fine until I implemented the custom toolbar button and dialog.  However, since the implementation of those items the TextChanged event quit firing.  My situation may be unique because I am using a commercial version of Sitefinity.  The editor control is being used in a custom edit mode for a custom control.  Does anyone have any suggestions as to why the TextChanged event is not firing?

Thank You.
-Drew

2 Answers, 1 is accepted

Sort by
0
Drew
Top achievements
Rank 1
answered on 31 Oct 2008, 01:58 PM
Just to narrow things down a bit, something in the following code block is causing the issue.  If I don't add the DialogDefinition to the editor then the TextChanged event fires correctly.  Any ideas?

Thanks.

DialogDefinition insertRateDialogDefinition = new DialogDefinition("~/CustomDialogs/InsertRate.ascx", new DialogParameters());

insertRateDialogDefinition.Modal = true;
insertRateDialogDefinition.VisibleTitlebar = true;
insertRateDialogDefinition.VisibleStatusbar = true;
insertRateDialogDefinition.Width = Unit.Pixel(700);
insertRateDialogDefinition.Height = Unit.Pixel(500);
insertRateDialogDefinition.ReloadOnShow = true;
this.container.RadEditor.AddDialogDefinition("InsertRate", insertRateDialogDefinition);
0
Rumen
Telerik team
answered on 04 Nov 2008, 10:05 AM
Hi Drew,

I tried to reproduce the reported problem with the latest Q3 2008 futures build of RadEditor, but unfortunately to no avail. You can see my test in the attached video and examine my project.

If the problem does not exist on your side when you comment or remove the DialogDefinition code, then my suggestion is to create your custom dialogs using aspx pages and to open the via the editor's showExternalDialog method. This solution works without any codebehind and DialogDefinition code. You can find information on how to create custom aspx dialogs in the following article: Add Custom Dialogs (scroll below) as well as in this live example: Make Images from Text.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Drew
Top achievements
Rank 1
Answers by
Drew
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or