I have a little scenario I am having trouble with. Basically, I have a webform which users can click a button and get a PDF output report. Upon clicking the button, I show a radWindow with a animated gif stating "please wait, while the report is created." On the server side, I am responding to the request with a PDF document in the response.binarywrite method. Therefore, the user will get a prompt to open/save/cancel the downloaded pdf document.
My problem is that the original webpage doesn't refresh and doesnt close the radwindow. It seems that outputting the PDF via the response object doesnt refresht the parent page calling the postback. Oh, by the way this is not AJAX. I am using a standard post-back.
Is there a way to close the radwindow?
My problem is that the original webpage doesn't refresh and doesnt close the radwindow. It seems that outputting the PDF via the response object doesnt refresht the parent page calling the postback. Oh, by the way this is not AJAX. I am using a standard post-back.
Dim
rpt As New NewHireReport
Dim rptProc As New Telerik.Reporting.Processing.ReportProcessor
Dim rendRst As RenderingResult = rptProc.RenderReport("PDF", rpt, Nothing)
Dim filename As String = rendRst.DocumentName & ".pdf"
Response.Clear()
Response.ClearHeaders()
Response.ContentType = rendRst.MimeType
Response.Expires = -1
Response.Buffer =
True
Response.AddHeader(
"Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", filename))
Response.BinaryWrite(rendRst.DocumentBytes)
Is there a way to close the radwindow?