Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 01, 2015 at 06:22 PM

    Hi Koti

    Attached at two examples

    Example 1: Always colored regardless row is selected or not

    Example 2: colored when row is selected

    -D

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 01, 2015 at 08:57 AM

    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

    Add comment
    10|10000 characters needed characters exceeded