In our webapplication, we've hierarchical grid (2 bands) which we want to export to PDF document using document exporter. We are able to export data, but all borders are not shown for grid in the pdf document. I tried to set cell style (border color, border width, border style) again before exporting to pdf. It does not work. Please help
Hi Bhadresh
I am facing the same issue in WebHierarchicalDataGrid - Document Export in PDF, here when I am exporting WebHierarchicalDataGrid data to pdf getting an error ig_res/Default' is a physical path, but a virtual path was expected, but the same is working for webdatagrid.
Please can you suggest what have to do?
Dear Bhadresh,
Both issues are solved with your suggestion. To correct border issue for grid I had to set
BorderCollapseDefault
="Separate" property in displaylayout. For second issue (to repeat header row for each data row), I followed your suggestion of adding row dynamically and then setting display property same as header row. This solution also worked and now grid display and PDF download is working as desired for me.
Thanks a lot for the help.
Hello,
One possible approach to implement the functionality you described is to insert rows with same HeaderText of the columns. Review the below link that will give you more details on how to dynamically add a row:
<http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=2889>
You may insert rows with styles similar to header in order to get same look and feel.
Hope this helps.
Thanks,
Bhadresh
Is it possible to repeat header from band[0] (in hierarchical webgrid) on every row of band[0]?
Hi Bhadresh,
I'm checking the suggestion which you've provided. Will get back to you with update in couple of days.
Pradnya