Conflict between ASP.Net AJAX RadComboBox and Silverlight RadChart

2 posts, 0 answers
  1. Wes
    Wes avatar
    2 posts
    Member since:
    Jan 2011

    Posted 01 Feb 2011 Link to this post

    I am currently testing out Trial versions of the ASP.Net AJAX Rad Controls and the RadControls for Silverlight. I have the following in the Visual Studio 2010 project
    • Silverlight 4 Application (SL App) with a RadChart in it.
    • ASP.Net User Control with a reference to the the SL app: <object data="data:application/x-silverlight-2," ...> ... </object>
    • Master Page including the RadScriptManager
    • ASP.Net form with related RadComboBoxes and the above user control
    I was trying to refresh the RadChart in the SL App with value from the selected values in the ASP.Net AJAX RadComboboxes. I figured out how to pass parameters to the SL App. However, with the SL App present on the page, the RadComboBoxes do not drop down. Is this a known issue? Is there a fix or a workaround?

    I've attached a simpler version of the project for your reference. The outcome is the same whether I use a Master Page or not.
    Thank you,

    Wes C.

    <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Site.master.vb" Inherits="Teacher_Effectiveness.Site" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="" xml:lang="en">
    <head runat="server">
        <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
        <asp:ContentPlaceHolder ID="HeadScript" runat="server">
        <form runat="server" id="MasterForm">
          <telerik:RadScriptManager ID="RadScriptMgr" runat="server">
        <div class="page">
            <div class="header">
                <asp:ContentPlaceHolder ID="HeadContent" runat="server">
                    <div class="title">
                            Teacher Effectiveness
                    <div class="loginDisplay">
                        <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                                [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                                Welcome <span class="bold">
                                <asp:LoginName ID="HeadLoginName" runat="server" />
                                <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/>
                    <div class="clear hideSkiplink">
                        <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                                <asp:MenuItem NavigateUrl="~/Index.aspx" Text="Home"/>
                                <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
            <div class="main">
                <asp:contentPlaceHolder ID="ContentHeader" runat="server">
                <asp:ContentPlaceHolder ID="ContentMain" runat="server">
            <div class="clear">
        <div class="footer">
        <asp:ContentPlaceHolder ID="Script" runat="server">

    <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Test.aspx.vb" Inherits="Teacher_Effectiveness.Test" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register TagPrefix="chart" TagName="chart" src="User_Control/Results_By_Achievement_Level.ascx" %>
    <asp:Content ID="Content4" ContentPlaceHolderID="ContentMain" runat="server">
        <telerik:RadComboBox ID="RadComboBox1" runat="server">
       <chart:chart ID="pie" runat="server" />

    Imports Telerik.Web.UI
    Public Class Test
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not Page.IsPostBack Then
                Me.RadComboBox1.Items.Add(New RadComboBoxItem("1"))
                Me.RadComboBox1.Items.Add(New RadComboBoxItem("2"))
                Me.RadComboBox1.Items.Add(New RadComboBoxItem("3"))
                Me.RadComboBox1.Items.Add(New RadComboBoxItem("4"))
            End If
        End Sub
    End Class

    <%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Results_By_Achievement_Level.ascx.vb" Inherits="Teacher_Effectiveness.Results_By_Achievement_Level" %>
    <script type="text/javascript">
          function onSilverlightError(sender, args) {
              var appSource = "";
              if (sender != null && sender != 0) {
                  appSource = sender.getHost().Source;
              var errorType = args.ErrorType;
              var iErrorCode = args.ErrorCode;
              if (errorType == "ImageError" ||
                    errorType == "MediaError") {
              var errMsg = "Unhandled Error in Silverlight Application "
                    + appSource + "\n";
              errMsg += "Code: " + iErrorCode + "    \n";
              errMsg += "Category: " + errorType + "       \n";
              errMsg += "Message: " + args.ErrorMessage + "     \n";
              if (errorType == "ParserError") {
                  errMsg += "File: " + args.xamlFile + "     \n";
                  errMsg += "Line: " + args.lineNumber + "     \n";
                  errMsg += "Position: " + args.charPosition + "     \n";
              else if (errorType == "RuntimeError") {
                  if (args.lineNumber != 0) {
                      errMsg += "Line: " + args.lineNumber + "     \n";
                      errMsg += "Position: " + args.charPosition +
                            "     \n";
                  errMsg += "MethodName: " + args.methodName + "     \n";
              throw new Error(errMsg);
    <object id="piechart" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="400" height="400">
        <param name="source" value="ClientBin/RadChart.xap"/>
        <param name="onError" value="onSilverlightError" />
        <param name="background" value="white" />
        <param name="minRuntimeVersion" value="4.0.50401.0" />
        <param name="uiculture" value="<%= System.Threading.Thread.CurrentThread.CurrentUICulture %>" />
        <param name="culture" value="<%= System.Threading.Thread.CurrentThread.CurrentCulture %>" />
        <param name="autoUpgrade" value="true" />
    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"/>
  2. Simon
    Simon avatar
    2281 posts

    Posted 14 Feb 2011 Link to this post

    Hi Wes,

    Please excuse us for the delayed response.

    We are currently working on the ticket you have submitted on the same subject and will continue troubleshooting there.

    We could write here as well when we find the root cause of the issue.

    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top