Skip to main content
Nov 10, 2021 2:54 PM UTC
Question

How to display the selected row in a Grid which has assigned a row format

Hi,

 

I have a State Formatting for a grid defined:

AitorP_0-1636555667137.png

It works perfectly, but I can not see which row is selected on the grid because the color does not change. Before to assign the state formatting, the grid had a Style with specific colors of Selected, Hover, etc.

 

Is it possible to combine Selected row and State Formatting? For example, If I select the second row, I would like to know I have selected the row. Now I dont know if the row is selected or not.

 

 

AitorP_1-1636555886659.png

 

Thanks in advance,

Aitor

 

6 replies

Nov 11, 2021 12:40 PM UTC

Ah yes state based definitions have overwritten 'Selection'

Not too sure if that can be 'overwritten' once more with CSS or not.

An alternate approach is to only apply state based definition on a Cell level vs. row level.

We've done things like an extra column in front with an actual icon so it is spotted easier, looks like your third column has that function.

AitorPAuthor
Nov 11, 2021 1:01 PM UTC

So, The answer is that Thingworx can not apply a Selected/Hover/etc style to a State Formatting, true? It only works when you work in a specific style for all the grid.

 

Nov 11, 2021 1:09 PM UTC

If you use row based stated based formatting vs. cell based.

Nov 19, 2021 7:19 PM UTC

Hi @AitorP.

 

Which version of ThingWorx are you running?  

 

Regards.

 

--Sharon

AitorPAuthor
Nov 22, 2021 3:21 PM UTC

ThingWorx 9.1.0

Dec 2, 2021 8:45 PM UTC

Hi @AitorP.

 

What is the value of the RowSelection property on the grid?

 

Regards.

 

--Sharon