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
546
Footer Row missing when exported to PDF
posted

Hi

I have a UltraWebGrid for which i have set the ColFooterVisibleDefault to Yes. In the InitializeLayout Event i set the footer text as follows

DataTable dt = (DataTable)UltraWebGrid1.DataSource;

UltraWebGrid1.Columns[1].Footer.Caption = dt.Rows.Count +
" row(s) retrieved";

When i export the grid to PDF using the UltraWebGridDocumentExporter the footer is disappeared.

 Any suggestions will be helpful

  • 546
    Verified Answer
    posted

    I have found a temporary solution by adding EndExport event to UltraWebGridDocumentExporter and adding the text in that event.

     

    protected void UltraWebGridDocumentExporter1_EndExport(object sender, Infragistics.WebUI.UltraWebGrid.DocumentExport.EndExportEventArgs e)

    {

                   //to export the footer i.e. row count

                  e.Section.AddQuickText(UltraWebGrid2.Columns[0].Footer.Caption);

    }