fixes type in the collapse/uncollapse rows example, resolves #6124
Merge pull request #6126 from janoskk/fix-6124

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