cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

State Formatting Question

BigDThing
2-Guest

State Formatting Question

I am needing to apply state-based formatting to a grid so that it functions as follows: 

* The entire row of a grid widget is highlighted green if the 'Status' cell value of the row is equal to 'Active'

* Certain cells of the grid row are highlighted red if the values of those cells exceed a certain value

 

All is fine if my row is supposed to be green AND my specific cells have exceeded their specific limits.  The issue I'm having is when the row is green but the other cells with state-based formatting have not exceeded their limit.  In this case, those cells are white instead of green like the remainder of the row.  I cannot make their default style green because that is determined on the value of another cell. 

 

I needing the ability to have like nested styles.  Has anyone run into this situation or have a solution to this ThingWorx grid widget requirement?

 

Regards,

 

 

 

3 REPLIES 3
slangley
23-Emerald II
(To:BigDThing)

Hi @BigDThing.

 

Thank you for using our community.  We will respond to your post once we have identified the appropriate resource.

 

Regards.

 

--Sharon

statka
12-Amethyst
(To:BigDThing)

Hello @BigDThing,

 

Based on your description, it sounds like you may have a style that uses a white fill background for those cells that do not exceed the threshold value in the state definition. Would specifying an empty style with no color definitions work for you in your state definition?

 

As an example, I put together the data set you see below. When the status field for a row is set to "Validated", the row should be highlighted in green. When the "Num1" field exceeds a value of 10, that individual cell should be red. Is this the behavior you are looking for?

 

GridStateExample.jpg

Regards,

 

Stefan

mgoel
17-Peridot
(To:statka)

@BigDThing

 

Hope you are doing good. Could you please confirm if the issue has been resolved.

 

If yes, please mark the answer as accept as solution for the future reference. Thank you in advance.

Regards-Mohit Goel

Top Tags