How to a grid containing subgrids to PDF using toPDF

I have a dhtmlxGrid contains lot of subgrids and want to save it as PDF. I tried toPDF function, unfortunately it only showing main grid rows not showing any subgrids in it :frowning: .

grid.toPDF('codebase/grid-pdf-php/generate.php', 'color');

Is there any option to save main grid to PDF along with the subgrids includes in it?

Unfortunately it’s not available to export subgrids to the pdf