locked
Possible to display column labels under group header? RRS feed

  • Question

  • Hi,

    I have an XSLTListView that has group headers enabled,   one thing that was
    asked about this view.

    Is it possible to display the column headers under each group row?

    So something like this

    Group 1 Header
    Column 1....Column2

    Group 2 Header
    Column1....Column2

    The column headers don't need to filter or sort,  but just display the names
    of the columns.   To help users know what column they are viewing when they've
    scrolled all the way down on the page.

    Wednesday, October 17, 2012 3:42 PM

Answers

  • Hi,

    Please try the steps below:

      • Open the list view using SharePoint Designer, edit file in advanced mode.
      • Select Design ribbon, modifying it using "Customize Entire View" from "Customize XSLT" drop down.
      • In Design view, select the group header, below the row the group header, insert another tr tag and insert td tags under it, if you have three columns in the view, add five (3+2) <td> tags:

    <tr>
          <td></td>
          <td></td>
           <td>column1</td>
          <td>column2</td>

    <td>column3</td>

          </tr>


    Xue-mei Chang

    TechNet Community Support

    • Proposed as answer by romeo donca Thursday, October 18, 2012 11:46 AM
    • Marked as answer by illegal operation Thursday, October 18, 2012 4:22 PM
    Thursday, October 18, 2012 10:34 AM

All replies

  • Hi,

    Please try the steps below:

      • Open the list view using SharePoint Designer, edit file in advanced mode.
      • Select Design ribbon, modifying it using "Customize Entire View" from "Customize XSLT" drop down.
      • In Design view, select the group header, below the row the group header, insert another tr tag and insert td tags under it, if you have three columns in the view, add five (3+2) <td> tags:

    <tr>
          <td></td>
          <td></td>
           <td>column1</td>
          <td>column2</td>

    <td>column3</td>

          </tr>


    Xue-mei Chang

    TechNet Community Support

    • Proposed as answer by romeo donca Thursday, October 18, 2012 11:46 AM
    • Marked as answer by illegal operation Thursday, October 18, 2012 4:22 PM
    Thursday, October 18, 2012 10:34 AM
  • Perfect!

    I thought I had tried this before I posted,  but it was repeating them on every row,  but I just did it again and this time it worked.

    Thank You

    Thursday, October 18, 2012 4:21 PM
  • Hi, Xue-mei -

    Can we do a similar operation in SharePoint 2013 ?

    I tried to do it in SP 2013, but didn't find the "Customize XSLT" option. 

    Thank you.

    Kind Regards,

    prajK

    Saturday, May 2, 2015 4:31 AM
  • Hi,

    Please try the steps below:

      • Open the list view using SharePoint Designer, edit file in advanced mode.
      • Select Design ribbon, modifying it using "Customize Entire View" from "Customize XSLT" drop down.
      • In Design view, select the group header, below the row the group header, insert another tr tag and insert td tags under it, if you have three columns in the view, add five (3+2) <td> tags:

    <tr>
          <td></td>
          <td></td>
           <td>column1</td>
          <td>column2</td>

    <td>column3</td>

          </tr>


    Xue-mei Chang

    TechNet Community Support

    I know this is an old thread, but I'm trying to do the same, and this is marked as the solution which it appears to be, but I can't for the life of me find how to complete the last step ... "In Design view, select the group header, below the row the group header, insert ..." I'm using Sharepoint Designer 2013 and I'm customising the entire view, but I can't find the right row to add the detail.  I've managed to add column headers above the group heading, below the existing column headings, after each item in the data, at the bottom of the group, but not where I want it to be. 

    Can anyone help?  It's driving me nuts.

    Thanks

    Tuesday, August 22, 2017 9:36 PM