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 PAGE
    <%@ 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head runat="server">
        <title></title>
        <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
         
        <asp:ContentPlaceHolder ID="HeadScript" runat="server">
         
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form runat="server" id="MasterForm">
          <telerik:RadScriptManager ID="RadScriptMgr" runat="server">
        </telerik:RadScriptManager>
       
        <div class="page">
            <div class="header">
                <asp:ContentPlaceHolder ID="HeadContent" runat="server">
                    <div class="title">
                        <h1>
                            Teacher Effectiveness
                        </h1>
                    </div>
                    <div class="loginDisplay">
                        <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                            <AnonymousTemplate>
                                [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                            </AnonymousTemplate>
                            <LoggedInTemplate>
                                Welcome <span class="bold">
                                <asp:LoginName ID="HeadLoginName" runat="server" />
                                </span>!
                                [
                                <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/>
                                ]
                            </LoggedInTemplate>
                        </asp:LoginView>
                    </div>
                    <div class="clear hideSkiplink">
                        <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                            <Items>
                                <asp:MenuItem NavigateUrl="~/Index.aspx" Text="Home"/>
                                <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                            </Items>
                        </asp:Menu>
                    </div>
                     
                </asp:ContentPlaceHolder>
                 
            </div>
            <div class="main">
                <asp:contentPlaceHolder ID="ContentHeader" runat="server">
                 
                </asp:contentPlaceHolder>
                <asp:ContentPlaceHolder ID="ContentMain" runat="server">
                          
                     
                </asp:ContentPlaceHolder>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="footer">
            
        </div>
        <asp:ContentPlaceHolder ID="Script" runat="server">
             
        </asp:ContentPlaceHolder>
        </form>
    </body>
    </html>

    TEST.ASPX
    <%@ 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">
        </telerik:RadComboBox>
     
       <chart:chart ID="pie" runat="server" />
    </asp:Content>

    TEST.VB
    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

    Results_By_Achievement_Level.ascx
    <%@ 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") {
                  return;
              }
     
              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);
          }
     
           
        </script>
    <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
    Admin
    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.

    Regards,
    Simon
    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