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

Sys undefined with RadButton in Composite Control (IE7 mode)

2 Answers 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Veronique
Top achievements
Rank 1
Veronique asked on 08 Apr 2013, 03:48 PM
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.
<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">
 
<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>

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 10 Apr 2013, 11:22 AM
Hello Veronique,

I have reproduced the described issue with version 2013.1.326.40. Note that this is the latest internal build and it is possible to arise some issue in the internal build as it is not a stable version.

You can, however, download and install the Q1 2013 SP (version 2013.1.403) which is the latest official version and it does not reproduce the issue. You can also find useful this blog post related on how to easily upgrade your version of RadControls.

All the best,
Danail Vasilev
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.
0
Veronique
Top achievements
Rank 1
answered on 10 Apr 2013, 12:35 PM
Q1 2013 SP (version 2013.1.403)  is working perfectly. 
Thanks for the quick fix !!!
Tags
General Discussions
Asked by
Veronique
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Veronique
Top achievements
Rank 1
Share this question
or