Hi,
In my application, we are using document exporter to export an ultrawebgrid control in pdf format. This grid is hierarchical grid with 2 bands and footer is displayed only for Band[0]. When the grid is displayed on screen, we want to show footer row, but when data is exported to PDF, this row should be hidden.
So on the required download button click event, before calling documentexporter's export method, I'm hiding grid footer by setting following property
uwgGrid.Bands[0].ColHeadersVisible =
ShowMarginInfo.No;
But the footer row is not hidden in pdf. Please help
Hi Petar,
I am facing an issue which is very similar. I am trying to export a UltraWebGrid to EXCEL & PDF using UltraWebGridExcelExporter & UltraWebGridDocumentExporter respectivly.
The issue is when export to EXCEL, the exported excel file contains the footer row [It is good]. On the other hand, when exported to PDF the Footer row disappears.
Please update me with your expert opinion as soon as possible.
Thanks,
Hi pradnyavaidya,
It has been a while since your post, however in case you stil need assistance I would be glad to help.
In order not to export your footer row using the DocumentExporter, you need to handle the exporter's FooterRowExporting server-side event and set e.Cancel = true; in the handler.
You can find useful information regarding the UltraGridDocumentExporter control at:
http://help.infragistics.com/Doc/ASPNET/2011.1/CLR4.0/?page=Web_WebGridDocumentExporter_Using_WebGridDocumentExporter.html
Please let me know if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.https://es.infragistics.com/support