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

Pagging are hide after Export to PDF in radgrid

3 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jignesh
Top achievements
Rank 1
Jignesh asked on 24 Mar 2010, 05:54 AM
Hello Friends,

 
I maintain the pagging from the code behind..., When i will follow the below step that time pagging will be not displayed on radgrid.
Step 1: Click on Export to PDF than pdf file will be generated.
Step 2: Filter any record that time filteration is working fine  but at a time pagging are not displayed.

If i will follow the same step for Export to Excel than pagging are displayed and working fine.

i used below code for export to pdf.

                        grdUsers.ExportSettings.ExportOnlyData = True
                        grdUsers.ExportSettings.OpenInNewWindow = True
                        grdUsers.ExportSettings.IgnorePaging = True
                        grdUsers.Rebind()
                        grdUsers.MasterTableView.ExportToPdf()
                        grdUsers.MasterTableView.AllowFilteringByColumn = True


Please help me

Thanks & Regards
Jignesh Patel

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Mar 2010, 09:24 AM
Hi Jignesh,

In order to display the grid pager in the exported pdf file you should set ExportOnlyData property to false. This property is helpful when you want to export only the data - e.g. to exclude the controls from the exported file.

Additionally, when you enable IgnorePaging, RadGrid will rebind before export in order to fetch all the data from your datasource.

More info is available here:
http://www.telerik.com/help/aspnet-ajax/grdexport.html

Greetings,
Pavlina
the Telerik team

 


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jignesh
Top achievements
Rank 1
answered on 24 Mar 2010, 11:50 AM
Hello Pavlina

Thanks for reply.

I had tried it but its  not working.

Please help me.

Thanks
Jignesh Patel
0
Pavlina
Telerik team
answered on 26 Mar 2010, 10:12 AM
Hello,

After further research I found that in fact exporting of RadGrid pager in PDF is a limitation/not supported scenario. Please excuse us for any inconvenience this may caused you.

Kind regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Jignesh
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jignesh
Top achievements
Rank 1
Share this question
or