Sharepoint List Formatting: Reference first row within a group

Gagan Pradhan 0 Reputation points
2024-06-04T19:32:39.71+00:00

I have a grouped SharePoint list I am applying custom column formatting to display a Gnatt Chart within the column. within the chart I only want the month names shows for the first row within a group. Having the month names being repeated for every record in the list seems too redundant. I was thinking of conditionally displaying the div if the row index is 0, but how do I get the row index of a row within a group?

{
 
"style"
"display"

How do I replace @rowIndex with @groupRowIndex? Is that even possible? Any alternative solutions or ideas?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,012 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,761 questions
{count} votes