In my latest application I am using an itemRenderer in
Datagrid for highlighting certain cell labels in red color .when
the application loads everything is rendered correctly.But if
operations like scrolling(horizontally/vertically) , sorting ,
hiding a column and filtering is done on a datagrid I see
highliting on other cell labels which is not the intended
functionality.I am using Label component in the itemRenderer for
highlighting purpose. Please do help me out in this aspect ASAP.
I have attached the code for better idea regarding the issue.
I've had problems with something similar to this however
instead of a DataGrid I was using a Tree where I needed certain
nodes to be special colors. I was never actually able to solve the
issue using a normal method of just setting a simple style to the
itemRenderer text however a work around I did implement that works
equally as well was instead of trying to set a style and let that
change the color of the label I set html styles to the text itself.
Example as follows.