I have Explorer.aspx that defines a RadWindowManager as seen below:
<
telerik:RadWindowManager
ID
=
"radWinMgr"
runat
=
"server"
AutoSize
=
"true"
EnableShadow
=
"true"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
VisibleStatusbar
=
"false"
OnClientClose
=
"fncClientClose"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"rwUploadParent"
runat
=
"server"
Behaviors
=
"Close"
NavigateUrl
=
"Upload.aspx"
></
telerik:RadWindow
>
<
telerik:RadWindow
ID
=
"rwDownloadParent"
runat
=
"server"
Behaviors
=
"Close"
NavigateUrl
=
"Download.aspx"
></
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
The OnClientClose function that you see referenced above is defined as follows:
<
script
type
=
"text/javascript"
>
function fncClientClose(winNewRep, args) {
var arg = args.get_argument();
if (arg == 1) {
//Refresh file explorer:
var oExplorer = $find("<%=radExplorer.ClientID%>");
var dirPath = oExplorer.get_currentDirectory();
if (dirPath) oAjaxPanel.ajaxRequest(dirPath);
}
}
</
script
>
The purpose of the function is to refresh the RadFileExplorer, but this function never gets called. I have a button click the opens Upload.aspx as a RadWindow as follows:
<
asp:Button
ID
=
"btnUpload"
runat
=
"server"
Text
=
"Upload"
OnClientClick
=
"fncOpenPopupWin('UploadMgr.aspx?UpFolder=', 'rwUploadParent'); return false;"
/>
As you see the OnClientClick of the button calls another function and passes the page name to open, including a query string parameter, and the name of the RadWindow:
<
script
type
=
"text/javascript"
>
function fncOpenPopupWin2(strPage, strParent) {
var varLocation = "/Root";
var winNewRep = radopen(strPage + varLocation, strParent);
}
</
script
>
When the button is clicked, page Upload.aspx opens, the user does what he/she wants, and then closes Upload.aspx. At that point, I expect the OnClientClose of the RadWindownManager to execute, but it never does.
I have read many postings about this kind of problem here on the forum, but none of the solutions have helped my situation. I appreciate any time someone takes to review this and offer suggestions.
Thank you,
Steven