In order to have this work when grouping with a link I added this
if(!ui.rowData.pq_gtitle) - see code below
How can I show the second part (non link) as the grouping header.
Right now if there is no else it shows the whole line (nba.com:::nba) which is ugly but has the count or if I put an else and just show the second part it shows (nba) but with no number.
var data = [
[1, 'Celtics',"nba.com:::nba", 339938.0, 36130.0],
[2, 'Blazers',"espn.com:::espn" , 315654.0, 11231.0],
[3, 'Pistons',"nba.com:::nba" , 9954.0, 11231.0],
[2, 'Raptors',"nba.com:::nba" , 9954.0, 11231.0]
];
$.extend(obj.colModel[findTitle(obj.colModel, 'Contact Name/Project')], {
render: function( ui ){
if( ui.cellData) {
var aval = ui.cellData.split(':::');
if(!ui.rowData.pq_gtitle){
return "<a href='https://" + aval[0] + "' target='_blank'>" + aval[1] + "</a>";
} else
{ return aval[1]}
}
}
});