SharePoint 2013 : Hide Column Name from Grouped View Header

Posted: April 20, 2015 in SharePoint

In case you are looking to hide Column name and semicolon in Grouped view example

+ Name : Ankur (1)

You want to hide (1) to show only –

+ Ankur (1)

Use below script in CEWP, remember to refer jquery library.

$(“table.ms-listviewtable td[class=’ms-gb’]”).each(function() {

elem = $(this)[0];

var linkNode = elem.childNodes[0];

linkNode.removeChild(linkNode.childNodes[1]);

var textNode = elem.childNodes[1];

textNode.nodeValue = textNode.nodeValue.split(‘:’)[1];

linkNode.appendChild(textNode);

});

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s