Click to expand & Collapse table groups

This is great and worked like a charm however the column summaries disappear when I apply this to my view. Any ideas on how to preserve these?