I am facing a problem.
I am currently using Telerik version 2012.2.724.40 and everything is working.
However, I am unable to upgrade to version 2013.1.326.40.
When I do, I get the following error:
Sys is undefined
"ASP.NET Ajax client-side framework failed to load."
I tried everything posted on your forum with no success so I decided to narrow the bug and found the cause.
I am using a RadButton in a composite control.
Because our clients are mainly using IE7, all our applications are designed in IE7 mode.
This is the cause of the bug. I get no error if I remove the IE7 mode.
I must keep the Ie7 mode. Is there a workaround ?
Here is a code sample reproducing the bug.
MyCompositeControl.cs
Default.aspx
Web.Config
I am currently using Telerik version 2012.2.724.40 and everything is working.
However, I am unable to upgrade to version 2013.1.326.40.
When I do, I get the following error:
Sys is undefined
"ASP.NET Ajax client-side framework failed to load."
I tried everything posted on your forum with no success so I decided to narrow the bug and found the cause.
I am using a RadButton in a composite control.
Because our clients are mainly using IE7, all our applications are designed in IE7 mode.
This is the cause of the bug. I get no error if I remove the IE7 mode.
<head runat="server"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title></title></head>I must keep the Ie7 mode. Is there a workaround ?
Here is a code sample reproducing the bug.
MyCompositeControl.cs
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;using Telerik.Web.UI;namespace TestCompositeControl{ public class MyCompositeControl : CompositeControl { protected override void CreateChildControls() { RadButton radButtonTest = new RadButton(); radButtonTest.ID = "radButtonTest"; radButtonTest.Text = "Test"; Controls.Add(radButtonTest); base.CreateChildControls(); } }}Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestCompositeControl.Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><%--Remove this line to hide the bug.--%> <title></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="true" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"/> Remove the IE=EmulateIE7 to hide the bug.<br /> <uc:MyCompositeControl id="MyCompositeControl1" runat="server"></uc:MyCompositeControl> </form></body></html>Web.Config
<configuration>... <system.web> <compilation debug="true" targetFramework="4.0" /> <pages> <controls> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> <add tagPrefix="uc" namespace="TestCompositeControl" assembly="TestCompositeControl" /> </controls> </pages>... </system.web>...</configuration>