I'm submitting a ... (check one with "x")
[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports)
Plunkr demo: http://plnkr.co/edit/25NZ7M?p=preview
If the table has [scrollable] set to true, the method passed to [rowStyleClass] is never called. If the table is not scrollable, the method is called as expected.
The method passed to [rowStyleClass] should be called for every row; even if the table is scrollable.
Minimal reproduction of the problem with instructions
<p-dataTable [value]="items" [scrollable]="false" [rowStyleClass]="tableOneHighlight">
<p-column field="id" header="ID"></p-column>
<p-column field="name" header="Name"></p-column>
What is the motivation / use case for changing the behavior?
I need to add a custom class to rows even when inside a scrollable table