I am using a WebGrid with Paging enabled but the PDF exporter only exports the currently loaded page.
any idea of how to force the exporter to export the entire thing?
Still only exporting currently loaded page to PDF.
Here is what I have for the click event:
UltraWebGrid1.DisplayLayout.Pager.CurrentPageIndex = 1
UltraWebGrid1.DisplayLayout.Pager.AllowPaging = False
UltraWebGrid1.DataBind()
UltraWebGridDocumentExporter1.Export(UltraWebGrid1, report)
In the click event of the button which exports grid to PDF
Does not seem to work for me. Which event should I be turning paging off in?
Thanks I will give it a try.
R
Hi Robert
You have to disable paging , and then export the WebGrid, and later you can enable paging again.
UltraWebGrid1.DisplayLayout.Pager.CurrentPageIndex = 1;
UltraWebGrid1.DisplayLayout.Pager.AllowPaging = false;
UltraWebGridDocumentExporter1.Export(UltraWebGrid1);
UltraWebGrid1.DisplayLayout.Pager.PageSize = Convert.ToInt32(PageSizeDDL.SelectedValue);
UltraWebGrid1.DataBind();
Hope this helps