Skip to main content
6-Contributor
Jun 15, 2023 11:01 AM UTC
Question

State Definition overriding style properties.

Hi,

I have a grid which has a state formatting which changes the color (of value) of row to red after some condition is hit, and keeps it default otherwise.
I want to change the background color of row when i select a particular row, so, i applied background color on selection in style properties.
But on selection of row, the background color doesnt change only the text becomes smaller, seems like the state definition is overriding with the style properties 
I want that background color on selection, is there any workaround it ?
Above grid is the issue,

bottom is the behaviour i want 

p.png

 

 

 

 

 

3 replies

Support
Jun 21, 2023 6:51 PM UTC

Hi @Avinash_Shukla.

 

Please provide the version of ThingWorx you're running and advise which grid widget you're using. 

 

What is the state definition doing?  Perhaps you can provide that along with a simplified mashup so we can take a look.

 

Regards.

 

--Sharon

Translate
6-Contributor
Jun 27, 2023 11:06 AM UTC

Hey thanks, I figured it out eventually.

 

Translate
Support
Jun 29, 2023 8:54 PM UTC

Hi @Avinash_Shukla.

 

Would you mind sharing your solution with the community?

 

Thanks.

 

--Sharon

Translate