Here are my initial steps:
1) Create a fresh .NET 4.5 "ASP.NET Web Forms Application" in Visual Studio 2012
2) Upgrade the project to a Telerik RadControld project, using v 2013.3.1015.45
3) Place the following markup on Default.aspx:
This is the code-behind:
If I open and then immediately close the RadWindow, I don't get any errors. However, if I:
1) Open the Window
2) Spell-check the textbox.
3) Close the Window
I get a javascript error:
0x800a1391 - JavaScript runtime error: '$telerik' is undefined
This same setup did not cause me problems in .NET 4.0. I can send the corresponding .NET 4.5 .zip file if necessary. Thank you!
1) Create a fresh .NET 4.5 "ASP.NET Web Forms Application" in Visual Studio 2012
2) Upgrade the project to a Telerik RadControld project, using v 2013.3.1015.45
3) Place the following markup on Default.aspx:
<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="RadSpellTestApp._Default" %><asp:Content runat="server" ID="HeaderContent" ContentPlaceHolderID="HeadContent" > <script type="text/javascript"> function spellCheck(elID) { var spell = $find(elID); spell.startSpellCheck(); return false; } </script></asp:Content><asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent"> <asp:Button ID="btnOpen" runat="server" Text="Open Window" /> <trk:RadWindow ID="rdwElement" runat="server" Behaviors="Move,Resize" Width="525" Height="390" Modal="true" VisibleStatusbar="false" > <ContentTemplate> <trk:RadAjaxPanel ID="pnlElement" runat="server"> <trk:RadTextBox ID="txtText" runat="server" Rows="7" TextMode="MultiLine" Width="474px" /> <trk:RadSpell ID="rdSpell" runat="server" ButtonType="None" ControlToCheck="txtText" /> <asp:Image ID="imgSpell" runat="server" ImageUrl="~/Images/spellcheck.gif" Style="cursor: pointer;" ToolTip="Spell check" /> </trk:RadAjaxPanel> <br /> <asp:Button ID="btnClose" runat="server" Text="Close Window" /> </ContentTemplate> </trk:RadWindow></asp:Content>This is the code-behind:
Public Class _Default Inherits Page Private Sub btnOpen_Command(sender As Object, e As CommandEventArgs) Handles btnOpen.Command rdwElement.VisibleOnPageLoad = True End Sub Protected Sub btnClose_Command(ByVal sender As Object, ByVal e As CommandEventArgs) Handles btnClose.Command rdwElement.VisibleOnPageLoad = False End Sub Protected Overrides Sub OnPreRender(e As EventArgs) MyBase.OnPreRender(e) imgSpell.Attributes("onClick") = "spellCheck('" & rdSpell.ClientID & "')" End SubEnd ClassIf I open and then immediately close the RadWindow, I don't get any errors. However, if I:
1) Open the Window
2) Spell-check the textbox.
3) Close the Window
I get a javascript error:
0x800a1391 - JavaScript runtime error: '$telerik' is undefined
This same setup did not cause me problems in .NET 4.0. I can send the corresponding .NET 4.5 .zip file if necessary. Thank you!