Hi Mantri,
Since you have 200 records in table, I guess you would be using growing property. So, what ever you write the color logic it will apply for only items which are visible.
You need to use updateFinished event of table, where it will hit each time the table is re-rendered.
Will this sample help? Plunker
Also, do not add style class based on id, use model data instead.
Regards,
Sai Vellanki.