【发布时间】:2012-06-19 16:30:32
【问题描述】:
我在 Telerik MVC 弹出窗口中显示 Telerik 报告,该窗口在客户端代码中实例化。第一次一切正常——报告正常显示。
但是,如果窗口关闭(因为它会关闭)并且用户再次单击打开弹出窗口的页面上的按钮,则弹出窗口会打开,但不会出现报告内容。这是客户端代码:
$(document).ready(function () {
$('#printButton').click(function () {
var printPopup = $.telerik.window.create({
title: "Resident Account Report",
contentUrl: '/myApp/ReportPages/ReportPage.aspx' + '?rpt=myReport&ID=' + @Model.id,
actions: ["Refresh", "Maximize", "Close"],
height: 600,
width: 1100,
modal: true,
resizable: true,
draggable: true,
scrollable: false,
onRefresh: function () {
var myWindow = $(this).data('tWindow');
myWindow.center().open();
}
});
});
});
问题是因为第一个弹出实例仍然存在于 DOM 中,需要被释放吗?
【问题讨论】:
标签: asp.net-mvc dom telerik-mvc telerik-reporting