Skip to Content
0
May 17, 2013 at 12:17 PM

Changing color of table cells

1373 Views

We have created a SAPUI5 application using the SAPUI5 "table" control and with a gateway service for oData and I'd like to change the background color of the cells based on the data. If D1 red if D2 blue if D3 yellow.

So far I can do this only based on a menu event, click on a menu button to change the color. I've tried parsing the DOM with

document.getElementsByTagName(SPAN'), and looping thru the DOM and changing the background color but the data is not there until the bindrows has completed. I've tried window.onload and still the data is not there. Is there an event after when oTable.bindrows() gets the data?