fixes type in the collapse/uncollapse rows example, resolves #6124

Hello,

Please consider merging my fix.

Thanks and Best regards,
Janos