This is a migrated thread and some comments may be shown as answers.

ExportToPDF doesn't do anything

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chad Hensley
Top achievements
Rank 1
Chad Hensley asked on 30 Aug 2008, 04:59 AM
My exporttopdf radgrid doesn't do anything.  I figured out I was missing the javascript on the ascx.  But now there is an issue calling it.

In the demo the ClientSettings has ClientEvents-OnRequestStart as an attribute.  I believe this is an error as intellisense can't see it and it throws a design and run-time error. Could you verify?

Thanks,

Chad

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 01 Sep 2008, 07:19 AM
Hi Chad,

Try the following code snippet to export an ajaxified Grid.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" > 
                <ClientEvents OnRequestStart="mngRequestStarted" /> 
            </telerik:RadAjaxManager> 


JS:
 <script type="text/javascript"
                function mngRequestStarted(ajaxManager, eventArgs) 
                { 
                  if(eventArgs.EventTarget == "mngBtnExcel" || eventArgs.EventTarget == "mngBtnWord" || eventArgs.EventTarget == "mngBtnCSV" || eventArgs.EventTarget == "mngBtnPDF") 
                  { 
                     eventArgs.EnableAjax = false
                  } 
                } 
                
                </script> 


Thanks
Shinu.
Tags
Grid
Asked by
Chad Hensley
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or