Posted 13 Sep 2013 Link to this post
I have several controls which were ajaxified using RadAjaxManager and I'm now trying to download a PDF. I understand
the issues with not being able to use Response.WriteFile (callbacks don't work...full postbacks do). I found
the following link on your site about using the ResponseScripts collection to get around this issue, i.e.,
http://www.telerik.com/help/aspnet-ajax/ajax-download.html
RadAjaxManager1.ResponseScripts.Add(String.Format(@"window.location.href = ""{0}"";", "http://yoursite.com/Your_File"));
This works fine...but the file appears in the existing browser window...I do not get the file download dialog.
Is there a way to add something similar to the following "content-disposition" header (with the attachment attribute)...so the download
file dialog appears? I need the downloaded file to appear in a separate window.
Response.AppendHeader("content-disposition", "attachment; filename = " + Path.GetFileName(fileName));
Posted 18 Sep 2013 Link to this post
ajaxManager.set_enableAJAX(