There are two bugs printing a a grouped grid with a group caption template:
1) Doesn't display column headers properly
2) Doesn't render group caption template.
The bugs can be reproduced on this sandbox:
https://codesandbox.io/s/syncfusion-v19-grid-print-broken-rg00v?file=/src/components/Grid.vue
Here is a separate sandbox that fixes the two bugs:
https://codesandbox.io/s/syncfusion-v19-grid-print-fixes-z16br?file=/src/components/Grid.vue
The two bug fixes are:
1) The printed grid object needs to be copy the "isVue" property from the html grid object.
2) When printing the grouping gutter columns need to be hidden.
Thank you Pavithra for addressing the issue with printing GroupCaptionTemplate. Will you also be addressing issue # 2 with regards to the column headers?
Note that since I opened this issue, I found a more effective solution than the beforePrint solution above. This more effective solution involves css as well as manipulating the colSpans in beforePrint, in order to indent the group captions to match the html. The css is as follows:
Thank you Rajapandiyan. I've had to override a lot things in order to make print, pdf, and excel use nested indenting for groups to match the html display. Also, I've had to change colspans of group footers and do special custom formatting of the footers when exporting, as well as work around showGroupedColumn always being true/false instead of allowing a setting to do nothing. I'll probably need to open up several discrete issues on each of these, else it'll become too confusing.