Hi,
I have asked one question that
"I have open a RadWindow on a button click event and then in that window i have added a download button for downloading the file.
But as the download pop up the radwindow stop behaving. Right now i want that RadWindow should get close automatically when the download gets completed but currently it remains open. So please provide me solution for this."
and Telerik provide me this answer
Cs:
Aspx
But after applying this solution i am getting this problem:
"after using this on the onclientclick on Download button the radwindow gets close before the download begins."
So, Please tell me any other solution so that user can download and radwindow gets close after that.
I have asked one question that
"I have open a RadWindow on a button click event and then in that window i have added a download button for downloading the file.
But as the download pop up the radwindow stop behaving. Right now i want that RadWindow should get close automatically when the download gets completed but currently it remains open. So please provide me solution for this."
and Telerik provide me this answer
Cs:
<
asp:Button
runat
=
"server"
ID
=
"btnDownLoad"
Text
=
"DownLoad"
OnClientClick
=
"CloseDialog();return false;"
OnClick
=
"btnDownLoad_Click"
/>
Aspx
<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
CloseDialog() {
GetRadWindow().close();
__doPostBack(
"<%=btnDownLoad.UniqueID %>"
,
""
);
}
</script>
But after applying this solution i am getting this problem:
"after using this on the onclientclick on Download button the radwindow gets close before the download begins."
So, Please tell me any other solution so that user can download and radwindow gets close after that.