Skip to main content
1-Visitor
November 10, 2021
Question

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

  • November 10, 2021
  • 2 replies
  • 2137 views

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

 

2 replies

22-Sapphire I
November 11, 2021

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.

AitorP1-VisitorAuthor
1-Visitor
November 11, 2021

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.

 

22-Sapphire I
November 11, 2021

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

Community Manager
November 19, 2021

Hi @AitorP.

 

Which version of ThingWorx are you running?  

 

Regards.

 

--Sharon

AitorP1-VisitorAuthor
1-Visitor
November 22, 2021

ThingWorx 9.1.0

Community Manager
December 2, 2021

Hi @AitorP.

 

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

 

Regards.

 

--Sharon