Tuesday, February 3, 2015

SharePoint 2013 CQWP won't group by more than 1 column.

When using the basic CQWP, it allows many options for customization.  One of the more popular features is grouping the results in multiple columns.  When I first started heavily using SP2013 I noticed that there was an issue with this feature.  No matter how many columns you select (2/3/4/5) it only shows the one column.

Doing some online searching I found all sorts of options for getting custom columns to show, but none for this particular issue.

I eventually found a related MSFT SharePoint Online/Office 365 post and tried this fix and it worked.

The fix is to edit the Controls15.css file:

1.  Edit /Style%20Library/en-us/Themable/Core%20Styles/controls15.css with notepad or SharePoint designer.
2. Locate the .dfwp-columns style
3. Set margin-left to 0.0em from 0.5em
4. Locate the .dfwp-list style
5. Remove "clear:both;"
6. Save the CSS file and publish a Major version.

Here is the original post.