Skip to main content
1-Visitor
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

22-Sapphire I

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.

Translate
AitorP1-VisitorAuthor
1-Visitor

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.

 

Translate
22-Sapphire I

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

Translate
Support

Hi @AitorP.

 

Which version of ThingWorx are you running?  

 

Regards.

 

--Sharon

Translate
AitorP1-VisitorAuthor
1-Visitor

ThingWorx 9.1.0

Translate
Support

Hi @AitorP.

 

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

 

Regards.

 

--Sharon

Translate