This is a migrated thread and some comments may be shown as answers.

Report in popup won't open a second time

1 Answer 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dewey
Top achievements
Rank 1
Dewey asked on 19 Jun 2012, 06:17 PM

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();
            }
        });
    });
});

1 Answer, 1 is accepted

Sort by
0
Milen | Product Manager @DX
Telerik team
answered on 25 Jun 2012, 08:31 AM
Hi Dewey,

From the given code snippet it is not possible to find a good reason for the issue you are facing.

It would be best if you open a support ticket where you may attach a runnable sample demonstrating the incorrect behavior. Then we will be able to help you further.

All the best,
Milen
the Telerik team

FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>

Tags
General Discussions
Asked by
Dewey
Top achievements
Rank 1
Answers by
Milen | Product Manager @DX
Telerik team
Share this question
or