Nikolay Velizhanin
Top achievements
Rank 1
Nikolay Velizhanin
asked on 19 Nov 2010, 07:28 AM
Standard silverlight ChildWindow works fine. But RadWindow has broken background and location.
Default.aspx file:
Default.aspx file:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SGP.GisPortal.WebApp._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" style="height: 100%; overflow: hidden;">
<head id="Head1" runat="server">
<title>Геоинформационный портал</title>
<style type="text/css">
#silverlightControlHost
{
height: 100%;
}
</style>
<script language=javascript>
if (window.name == null || window.name == '') {
window.name = 'GEOPORTAL';
}
</script>
<script type="text/javascript" src="Silverlight.js"></script>
<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>
</head>
<body style="height: 100%; margin: 0; padding: 0; overflow: hidden;">
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SGP.GisPortal.SilverlightApp.xap?v=e7c2e9fa-7d53-4613-b331-e1501caf7eef"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50524.0" />
<param name="autoUpgrade" value="true" />
<param name="windowless" value="true" />
<param name="EnableGPUAcceleration" value="true" />
<param name="enableautozoom" value="false"/>
<a href="Resources/SilverlightSetup/Silverlight.exe" style="text-decoration:none">
<br>
<p>Установить Microsoft Silverlight...</p>
<img src="Resources/SilverlightSetup/InstallSilverlight.png" alt="Установить Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</form>
</body>
</html>
3 Answers, 1 is accepted
0
Hello Nikolay,
George
the Telerik team
I tried to reproduce the problem, but to no avail. Could you please try to reproduce the problem in our online examples here - http://demos.telerik.com/Silverlight/#Window/APC.
Looking forward to your reply.
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Nikolay Velizhanin
Top achievements
Rank 1
answered on 22 Nov 2010, 04:30 PM
Problem in exampes does not reproduced because silverlight autozoom parameter in default.aspx is true.
Try set it to false:
<param name="enableautozoom" value="false"/>
Try set it to false:
<param name="enableautozoom" value="false"/>
0
Hello Nikolay,
George
the Telerik team
Sorry for this misunderstanding. We reproduced the issue. Thank you for reporting this bug, it helps us in improving our products. I am glad to your telerik points for reporting this abnormal behavior of our RadWindow control. We will investigate the cause for this issue and we will fix it in one of our future releases. You can track this progress in our Public Issue Tracking System (PITS) with Issue ID = 4132.
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight