Note that these options will only be visible on Panel with Rows Visible = 0.
Here's how it can be done:
Click the Column Header Menu > Expand all Rows.
Once records are expanded, you may now select Collapse all Rows option.