Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2167
UltraWebGrid only Exports 1 page
posted

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?

 

Parents
  • 546
    Verified Answer
    posted

    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;

    UltraWebGrid1.DataBind();

    UltraWebGridDocumentExporter1.Export(UltraWebGrid1);

    UltraWebGrid1.DisplayLayout.Pager.AllowPaging =
    true;

    UltraWebGrid1.DisplayLayout.Pager.CurrentPageIndex = 1;

    UltraWebGrid1.DisplayLayout.Pager.PageSize = Convert.ToInt32(PageSizeDDL.SelectedValue);

    UltraWebGrid1.DataBind();

     Hope this helps

     

Reply Children