I am displaying a Telerik report in a Telerik MVC popup window which is instantiated in client-side code. Everything works fine the first time -- the report appears normally.
But if the window is closed (as it will be) and the user clicks for a second time the button on the page that opens the popup, the popup opens but no report content appears. Here is the client code:
$(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();
}
});
});
});