Thursday, June 21, 2012

[ASP] FIX - script5009 'telerik' is undefined - $telerik is undefined

The problem is probably caused by script that assigns $telerik.$ to $ not getting loaded properly after AJAX. The Telerik.Web.UI.dll library has a script you can include through the ScriptManager that does exactly the same. The difference is that you do not have to worry about whether it is properly included with AJAX, because the ScriptManager takes care of that.

Fix: Add the following to your aspx or ascx page.

<asp:ScriptManager ID="ScriptManager1" runat="server">
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />


Post a Comment