Fixed.
When grouping is set, your own implementation of getItemMetadata must contain the overrides from slick.dataview.js
Just copy them from the file, i did it like this, works like a charm:
dataView.getItemMetadata = function (row) {
var item = dataView.getItem(rows[i]);
if (item === undefined) {
return null;
}
// overrides for grouping rows
if (item.__group) {
return groupItemMetadataProvider.getGroupRowMetadata(item);
}
// overrides for totals rows
if (item.__groupTotals) {
return groupItemMetadataProvider.getTotalsRowMetadata(item);
}
if (item.yourRowProperty == 'someValue')
{
return { cssClasses: 'yourClass1 yourClass2' }
}
return null;
}