cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.table with multiselect mode should dynamically change colors of cells.

Former Member
0 Kudos

Hi,

The color of one column cells/values should be changed based upon comparison of data with two different columns data.It should be done by default without any button action.

Please suggest me any sample code for this. UpdateFinished method should be sufficient to use to do validations of data?

Regards,

Koti Reddy

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

Hi Koti

Attached at two examples

Example 1: Always colored regardless row is selected or not

Example 2: colored when row is selected

-D

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

Hi Koti Reddy,

the post should answer your question.

In the post two ways are described. Both ways use a formatter. The first way uses writeToDOM with a CSS selector. The second one adds a new style class via the formatter.

In the post there is a linked example on JSBin.

Regards,

Florian