I have a page that when the user clicks a link to a pdf file it opens in a radWindow for print or view, etc.
The problem is that the pdf radWindow ALWAYS opens very small, as small as it can. I can resize it, but I want it to open using the dimensions I provided below.
Here is my code:
MainPage:
InvoiceWindow.aspx:
Any idea why the invoice window always opens to small?
The problem is that the pdf radWindow ALWAYS opens very small, as small as it can. I can resize it, but I want it to open using the dimensions I provided below.
Here is my code:
MainPage:
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function ShowInvoice(file) { |
| window.radopen("InvoiceWindow.aspx?file=" + file, "InvoiceWin"); |
| return false; |
| } |
| </script> |
| <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> |
| <Windows> |
| <telerik:RadWindow Skin="Sunset" ID="InvoiceWin" runat="server" Title="Monthly Invoice" Height="800" |
| Width="850" Left="10px" ReloadOnShow="true" Modal="true" ShowContentDuringLoad="false" Animation="None" /> |
| </Windows> |
| </telerik:RadWindowManager> |
| </telerik:RadCodeBlock> |
InvoiceWindow.aspx:
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Dealership Invoice Viewer</title> |
| <script type="text/javascript"> |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| function CloseRadWin() { |
| //get a reference to the RadWindow |
| var oWnd = GetRadWindow(); |
| //close the RadWindow |
| oWnd.close(); |
| } |
| </script> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <iframe style="width:820px; height:680px;" id="iframe1" runat="server"></iframe><br /> |
| <a href="#" onclick='return CloseRadWin();'><img src="images/close_win.gif" border="0" style="vertical-align: middle" /> Close Invoice</a> |
| </form> |
| </body> |
| </html> |
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| iframe1.Attributes("src") = Request("file") |
| End Sub |
Any idea why the invoice window always opens to small?
