Enum format in Datagrid 2

0
Hello Could someone write a step-by-step guide on how to implement dynamic image changes in DG2 rows just like in DG1?
asked
4 answers
0

Hi Tomas,

 

What you can do with DG2, is set your column to custom content.image.png

You can then add all 4 images in the same custom-content column and apply conditional visibility to each of them based on the conditions that you want to apply. Make sure the conditions for your conditional visibility are written in a way that you always only have 1 image showing.

 

You can also get the same results with dynamic classes and custom CSS, or create custom logic to set associations to an object with this ENUM, but that will be more complicated and harder to maintain.

 

answered
0

Alright, thank you, but what should I write in the condition then?

 

 

question2.png

answered
0

omg... I got it :-) ....

 

answered
0

Hi Tomas,

 

For each of the images you only target the specific ENUM value. For example: On the orange image you put the conditional visibility on the attribute value ->

for example: 

image.png

 

answered