Hi all, I have a cellclass function, similar to below, that helps to style cells within the grid:
function cellclass(row, columnfield, value, data) {
if (mode === 'User Activity') {
if (data.giuActivity === 'Sign On') { return 'green'; };
} else {
return row % 2 === 0? null : 'grey';
}
}
My issue is with the intent behind return row % 2 === 0? null : 'grey';
.
When I apply filters, from DOM inspection I can see that the other rows are still ‘there’, just hidden somehow so the cellclass is retained and the alternate class isn’t ‘refreshed’ and applied within the context of the filtered rows.
Is there a way of having the intent behind ‘return row % 2 === 0? null : ‘grey’ still function on filtered rows?
I should also say, I have tried using the altrows property to achieve this but it never seems to do anything and the desired behaviour isn’t as straightforward as always applying alternate rows.