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

RadEditor with EventHandler within RadWindow crashes on Browser refresh

4 Answers 68 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
R
Top achievements
Rank 1
R asked on 09 Sep 2011, 10:54 PM

I have a RadEditor in a tooltip which is opened from a RadWindow. When the RadEditor is Enabled, I have added some event handlers to restrict the number of characters entered in the RadEditor (LimitCharacter code from http://www.telerik.com/community/forums/aspnet-ajax/chart/charector-limit-in-rad-editor.aspx). If the browser is refreshed while the editor is in Enabled mode, I get the error:

“Unable to get value of the property 'removeChild': object is null or undefined” .
This seems to happen after
$telerik.removeExternalHandler is called (what I saw in the debug).
I’m not sure what I need to do to handle this, but I have not been able to find a solution. I use the exact same code but without the RadWindow, and it works.
Please let me know if you have any ideas as to what the problem might be.

RadEditor definition:
<telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="LimitCharacters" OnClientPasteHtml="OnClientPasteHtml" MaxTextLength="100" EditModes="All"

 

ToolsFile="~/EditorToolBar/Tools.xml" Width="600px" Height="100px" OnInit="RadEditor1_Init" ForeColor="Black" Font-Bold="true" Font-Size="Small" Content='<%# (Eval("Notes") == DBNull.Value || Eval("Notes") == "" || Eval("Notes").ToString() == "null") ? "" : Eval("Notes") %>'>

    <CssFiles>

        <telerik:EditorCssFile Value="~/Styles/RadEditorStyleOverrides.css" />

     </CssFiles>

</telerik:RadEditor>


RadWindow definition (in a different file):
<telerik:RadWindow ID="RadWindow_ConsRecDocs" runat="server" Behaviors="Move,Resize,Close"

NavigateUrl="ConsRecDocs.aspx" Skin="Windows7" Width="900" Height="700" AutoSize="false">

</telerik:RadWindow>

 

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Sep 2011, 01:51 PM
Hello R,

I am not aware of this problem. Could you please isolate it in a sample working project and send it for examination via a support ticket?

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tom
Top achievements
Rank 1
answered on 02 Nov 2011, 01:41 AM
I am receiving a similar error, but with a RadGrid. Has anyone found a solution to this?
0
Vladimir
Top achievements
Rank 1
answered on 28 May 2012, 09:40 PM
Hi,
   This problem looks similar to this question: 

http://www.telerik.com/community/forums/aspnet-ajax/window/attacheventhandler-not-working-when-radeditor-inside-a-radwindow.aspx

  Looks like there are problems with event handlers when combining RadEditor with RadWindow...

  Any solution or workaround?
0
Rumen
Telerik team
answered on 31 May 2012, 11:28 AM
Hello,

Did you try the provided suggestion in the http://www.telerik.com/community/forums/aspnet-ajax/window/attacheventhandler-not-working-when-radeditor-inside-a-radwindow.aspx forum thread?

If you experience such a problem and your are unable to resolve it, open a support ticket, provide a simple working project and we will help you.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
R
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Tom
Top achievements
Rank 1
Vladimir
Top achievements
Rank 1
Share this question
or