coloring of nattable cells dynamically [message #1843949] |
Wed, 25 August 2021 13:30 |
Vinod Gangal Messages: 4 Registered: August 2021 |
Junior Member |
|
|
I have a nattable inwhich i want to color some of the cells based on some actions that are performed by the user.
I understand that we can color the cells of nattable using the cellLabelAccumulator. But this is only useful when we know which cells to be colored before hand.
In my case, i need to color the nattable dynamically after the nattable is rendered.
Is there any way i can color the nattable during runtime i.e after the nattable has been rendered on the editor?
I tried to add the labels to the cellLabelAcumulator using the following code snippet to dynamically color the nattable cells but the cells are not colored.
getBodyLayerStack().getConfigLabelsByPosition(0,0).addLabelOnTop("FOO_LABEL");
Any idea how i could achieve this?
[Updated on: Wed, 25 August 2021 16:56] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02689 seconds