Hello,
I am following one of your demos on how to export radGrid data to PDF. http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx
After following the demo I ran into an issue where nothing would happen after clicking the "downloadPDF" button. After some research I came to learn that this may be caused by an AJAX issue because the page needs to return stream rather than XttpRequest used for AJAX.
The proposed solution (which is outlined in your demo) is to add a block of javascript code to the page like this:
The problem I am having is that I must somehow tie this function to the AjaxManager's ClientEvents-On-RequestStart attribute, but I am using an AjaxManagerProxy (since we already have an AjaxManager on the master page) and the AjaxMangerProxy does not seem to posses such a client side setting.
Please advise on how I can set this value for ClientEvents-On-RequestStart for an AjaxManagerProxy?
Thanks in advance,
Justin
I am following one of your demos on how to export radGrid data to PDF. http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx
After following the demo I ran into an issue where nothing would happen after clicking the "downloadPDF" button. After some research I came to learn that this may be caused by an AJAX issue because the page needs to return stream rather than XttpRequest used for AJAX.
The proposed solution (which is outlined in your demo) is to add a block of javascript code to the page like this:
<
script
type
=
"text/javascript"
>
function requestStart(sender, args) {
if (args.get_eventTarget().indexOf("btnDownloadPDF") > 0)
args.set_enableAjax(false);
}
</
script
>
The problem I am having is that I must somehow tie this function to the AjaxManager's ClientEvents-On-RequestStart attribute, but I am using an AjaxManagerProxy (since we already have an AjaxManager on the master page) and the AjaxMangerProxy does not seem to posses such a client side setting.
Please advise on how I can set this value for ClientEvents-On-RequestStart for an AjaxManagerProxy?
Thanks in advance,
Justin