Posted 14 November 2023, 7:41 pm EST
I have a tablix with some groups collapsed, when I print or save I have the need to expand all rows.
Is there the possibility to expand all the groups?
Forums Home / ActiveReports / ActiveReportsJS
Posted by: loris.branca on 14 November 2023, 7:41 pm EST
Posted 14 November 2023, 7:41 pm EST
I have a tablix with some groups collapsed, when I print or save I have the need to expand all rows.
Is there the possibility to expand all the groups?
Posted 15 November 2023, 6:08 pm EST
Hi Loris,
You can introduce a boolean parameter for example ‘isPrint’, and use this value to set the hidden value for your collapsable rows. For example, if ‘isPrint’ is true set the hidden value for the rows to false else keep them collapsed.
Then you can set the value of this parameter through code for when you want to print your report.
Please find attached a sample report implementing the same.
For setting the parameter value at runtime using code you may refer to Setting Parameter Values.
Regards,
Anand
Posted 15 November 2023, 7:15 pm EST - Updated 15 November 2023, 7:20 pm EST
Posted 16 November 2023, 9:02 pm EST
Hi Loris,
The ‘Toggle Item’ property is available in the TextBox tab, you can click on the TextBox tab after selecting the row, as in your attached image where you’ll find the ‘Toggle Item’ under Visibility.
Please find attached a sample implementing your use case using Tablix.
Regards,
Anand
Posted 16 November 2023, 9:32 pm EST
I did it, and it seems to work. The only bad thing is that by doing this the + sign remains on an already extended line, and when you close it the - sign comes out
Posted 19 November 2023, 7:43 pm EST
Hi Loris,
You can change the ‘Initial Toggle State’ of your TextBox that has the +/- sign to ‘Expanded’ so that it has a ‘-’ sign on an already expanded row.
However, none of the signs will appear when you export your report to PDF.
Regards,
Anand