Skip to main content
1-Visitor
March 25, 2021
Solved

SelectedRows property of Advanced grid is not showing selected data on load

  • March 25, 2021
  • 1 reply
  • 1814 views

Hi Team,

 

We have a grid populating data from one service as AllData to data and 2nd service for populating AllData to SelectedRows of advanced grid, but it is not showing as selected rows on load.

 

I tried same behaviour with List using SelectedItems property. It is working properly as selected items of list.

 

Please provide the solution as we need advanced grid and not list for our application functionality.

 

Thanks in advance.

 

Best answer by c_lowy

Hi @ranjank,

 

This will happen the IDFieldName parameter of your Grid Advanced widgets is not set to the primary key of the infotable you are displaying as per GridAdvanced will not display SelectedRows from an infotable without an IDFieldName in ThingWorx. After you set the IDFieldName parameter to the name of the primary key column of your infotable yuo should be able to see the selection at mashup load.

 

Also don't forget to set the RowSelection parameter of the Grid to Multiple if you need several rows to be selected.

1 reply

c_lowy16-PearlAnswer
16-Pearl
March 25, 2021

Hi @ranjank,

 

This will happen the IDFieldName parameter of your Grid Advanced widgets is not set to the primary key of the infotable you are displaying as per GridAdvanced will not display SelectedRows from an infotable without an IDFieldName in ThingWorx. After you set the IDFieldName parameter to the name of the primary key column of your infotable yuo should be able to see the selection at mashup load.

 

Also don't forget to set the RowSelection parameter of the Grid to Multiple if you need several rows to be selected.

5-Regular Member
April 7, 2021

Hi @ranjank 

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards,

Toolika Dixit