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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

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

ranjank
14-Alexandrite

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

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
c_lowy
16-Pearl
(To:ranjank)

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.

View solution in original post

2 REPLIES 2
c_lowy
16-Pearl
(To:ranjank)

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.

tdixit
13-Aquamarine
(To:c_lowy)

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

Top Tags