grid.toPDF only displays first row

hi,

i tried to use the gridToPDF module in a PHP solution. I have 2 grids and 1 chart. When I print the first grid, everything is ok. When I try to print the second grid, only the first column of the grid is displayed.

Any Idea how to fix that?

The grid config is as follows:

Grid2 = layout.cells("c").attachGrid();
			    Grid2.setHeader(",D1,D2,D3,Constant,Result D1, Result D2, Result D3"); //sets the headers of columns
				Grid2.setColumnIds("EPD3Title, EPD3value");
				Grid2.setColumnColor("#C1EAFE,white");
				Grid2.setInitWidths("340,*,*,*");   
				Grid2.setColAlign("left,left");
				Grid2.setColTypes("ro,ed,ed,ed,ro,ron[=c1*c4],ron[=c2*c4],ron[=c3*c4]");
				Grid2.setColumnHidden(1,true);
				Grid2.setColumnHidden(2,true);
				Grid2.setColumnHidden(3,true);
				Grid2.setColumnHidden(4,true);
				
				Grid2.init();
				
				Grid2.load("data/layout2.xml");

The Columns D1 to D3 are dynamically filled by the first grid over an attached event in the first grid. When a user enters a value in the first grid, it is automatically copied into the 2nd grid. The second grid only shows the results.

best regards
dan

sorry, the title is wrong. only the first column is displayed…

The same code works fine for me.

If issue is still actual, and you have any kind of demo where the problem can be checked, please share the demo