Change Color Cell Datatable depending richselect

Hello, i have issue about set css for cell in datatable with editor richselect

cell color value is same from collection data.
if it edited multiple times , the color just changed 2 times only. How i can change color for repeatly?

Good day @Vicky_Paulantono ,

When adding a new CSS class, you need to remove the previous one (via removeCellCss). Otherwise the old classes will be kept and also the newly added will override the old ones.

Check the example: Code Snippet .