Skip to main content
swapnar6405
Known Participant
Feb 22, 2024 5:20 PM UTC
Question

gridField rows selection color

Hi,

I have a read only grid with below parameters. Now when we select the rows those are appearing with a default color.

How and where I can customize the color which I want. Is there any parameter for doing this?

selectable: true,
selectionStyle: "ROW_HIGHLIGHT",
selectionValue: local!selection,
selectionSaveInto: local!selection,

4 replies

stefanhelzle0001
Brainy
Feb 22, 2024 5:32 PM UTC

Sorry, that is not supported. By default this is the "ACCENT" color as defined in your site configuration.

swapnar6405
Known Participant
Feb 22, 2024 5:52 PM UTC

When we update at the site level it is impacting all other locations. We would like to change only for the selected grid.

stefanhelzle0001
Brainy
Feb 22, 2024 5:56 PM UTC

Sorry, not supported.

konduruc733182
Inspiring
Feb 23, 2024 5:17 AM UTC

Hello [mention:74edcde47e734df8a3f1ea67013709ed:e9ed411860ed4f2ba0265705b8793d05] 

If you can use the selectionStyle as "CHECKBOX", may be you can play around with the background color parameter of your grid columns and achieve what you are looking for.



but you will have to write the logic in all the grid columns.

backgroundColor: if(
            contains(tointeger(local!selection),fv!identifier),
            "#FFFF00",
            ""
          )