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" %>
<
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
TEST.VB
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"
/>