I am looking to get the URL from the radWindow from javascript. I would rather not have to set it via javascript but not doing this it won't be able to resize the radwindow as it returns an error. I would like to get the NavigateURL from the radWindow
<telerik:RadCodeBlock ID=
"RadCodeBlock1"
runat=
"server"
>
<script type=
"text/javascript"
src=
"/scripts/ValidateFileType.js"
></script>
<script src=
"/scripts/ModalWindow.js"
type=
"text/javascript"
></script>
<script type=
"text/javascript"
>
function
openWinNavigateUrl() {
var
oWnd = $find(
"<%= rwApplication.ClientID%>"
);
oWnd.setUrl(
"/Repository/Application/2_CompletedPDF.pdf"
);
sizeRadWindow(oWnd, 50, 55);
oWnd.show();
}
function
sizeRadWindow(oWnd, width, height) {
var
browserWidth = $telerik.$(window).width();
var
browserHeight = $telerik.$(window).height();
oWnd.setSize(Math.ceil(browserWidth * width / 100), Math.ceil(browserHeight * height / 100));
oWnd.center();
}
</script>
</telerik:RadCodeBlock>
<telerik:RadLinkButton runat=
"server"
Text=
"View Completed Application"
OnClientClicked=
"openWinNavigateUrl"
AutoPostBack=
"false"
ID=
"_appLink"
>
</telerik:RadLinkButton>
<telerik:RadWindow RenderMode=
"Lightweight"
runat=
"server"
ID=
"rwApplication"
NavigateUrl=
"/Repository/Application/2_CompletedPDF.pdf"
Modal=
"true"
InitialBehaviors=
"Maximize"
RestrictionZoneID=
"NavigateUrlZone"
AutoSize=
"false"
VisibleStatusbar=
"false"
ShowContentDuringLoad=
"false"
Behaviors=
"Close, Maximize"
Title=
"Completed Application"
>
</telerik:RadWindow>