On my website, I have a master page where my RadAjaxLoadingPanel resides. On my content page, I have a RadGrid where one of the template columns is an ImageButton that when clicked will read a file from my database and using the code below will allow the user to view it:
The entire RadGrid is wrapped in a RadAjaxPanel with it's ClientEvents-OnRequestStart set to cancel the Postback:
This works fine but after the PDF is opened, the RadAjaxLoadingPanel just stays on and won't hide!
I've searched through the forums and Google but nothing anyone has suggested will work.
The opening of the file is done through the OnItemCommand method of the RadGrid but I also have some custom filtering being done through there so I can't separate it out, I need it ONLY for this one item.
Any suggestions?
Response.Buffer = true;
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AddHeader("content-disposition", string.Format("attachment;filename={0}", "MillCert.pdf"));
Response.BinaryWrite(BinaryFile);
Response.Flush();
Response.End();
The entire RadGrid is wrapped in a RadAjaxPanel with it's ClientEvents-OnRequestStart set to cancel the Postback:
function conditionalPostback(sender, args) {
args.set_enableAjax(false);
}
This works fine but after the PDF is opened, the RadAjaxLoadingPanel just stays on and won't hide!
I've searched through the forums and Google but nothing anyone has suggested will work.
The opening of the file is done through the OnItemCommand method of the RadGrid but I also have some custom filtering being done through there so I can't separate it out, I need it ONLY for this one item.
Any suggestions?