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

Export to PDF for Current Page not working

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ankesh Bharti
Top achievements
Rank 1
Ankesh Bharti asked on 28 Apr 2010, 07:30 PM
Hi,

First thanks or solution in advance ...

I have functionality in my application where i need to export current page of  grid to pdf. Its is working fine with setting property "IgnorePaging" to true. But its does not working for current page of grid and returns blank page. I got the reason that why its not working. Reason is that i  am using scrolling properties of grid. I f i am not using these properties then thi is working ok for current page too. But according to my requirement, it is mandatory for me to use scrolling properties. Please let me know how can i export current view of grid with these scrolling options true.


Thanks, 
Ankesh Bharti


2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 28 Apr 2010, 08:18 PM
Hello Ankesh,

Please try the following code - it will disable the scrolling only when exporting to PDF. In other words, this will affect the exported file only.
protected void Button1_Click(object sender, EventArgs e)
{
    RadGrid1.ClientSettings.Scrolling.AllowScroll = false;
    RadGrid1.Rebind();
    RadGrid1.MasterTableView.ExportToPdf();
}

Regards,
Daniel
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
Ankesh Bharti
Top achievements
Rank 1
answered on 29 Apr 2010, 06:21 PM
Hi Daniel,

Thanks for your fast reply.




Regards,

Ankesh Bharti
Tags
Grid
Asked by
Ankesh Bharti
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Ankesh Bharti
Top achievements
Rank 1
Share this question
or