Export to PDF when are there are mutiple repeating grid
We have a requirement where there are multiple repeating grids and each of them are visible on certain condition. And also each of the Repeating grid has a Button to Export to PDF, where the activity HTMLToPDF and View are called. How to conditionally display the grid in the PDF format? Are we suppose to create the grid individually and refer in the HTML. This option is ruled out as there are multiple repeating grids. Is there any other simpler way to resolve this issue.