Web 2.0 WebListBox cell color

Even running through the examples, I cannot find a way to set a cell color. This used to be a lot easier.

Would love to see CellFontColor() and CellBackgroundColor(), something with a few lines of code.

Hi Derek, check the WebListBoxStyleCellRenderer class, it has an example in the documentation.

You will have to create an instance of WebListBoxStyleCellRenderer (you can reuse it later), set its BackgroundColor and ForegroundColor. Once you have the styles defined, use your Listbox’s CellValueAt to assign it.

There is also an example showing how to add some custom CSS in this forum: