Skip to main content
1-Visitor
December 17, 2017
Solved

Repeater autoselectfirstrow is not working when reload happens

  • December 17, 2017
  • 9 replies
  • 4322 views

Hi,

I have a button and repeater in the mashup. Repeater has below properties assigned.

Service which feeds repeater invoked at mashup load event. And also invoked when user clicks button. Very first time first row selection happening automatically. But when we reloads repeater its first row auto selection is not working properly.

First not highlighted as per style definition.

SelectedRowChanged event triggering but passing empty/null data.

Version: ThingWorx 7.0.1-b482

Pai Chung​

Aanjan Ravi​

Carles Coll​

Thanks

Best answer by PaiChung

Ahh sorry.

Not sure if the Repeater supports a SelectedText or SelectedValue like the List Widget, but if it doesn't, you can add an invisible List widget and then you can take the value from the All Data and wire that to the SelectedText. (All Data always is the top row for an infotable)

9 replies

1-Visitor
December 18, 2017

This seems a bug, better you open a support case.

rk-311-VisitorAuthor
1-Visitor
December 18, 2017

Hi Carles,

Thanks for the reply.

Since I have basic PTC account I can't create support case. Highly appreciated if you/somebody create a case for this. So that it will be useful for many people who are facing this issue.

Thanks

22-Sapphire I
December 18, 2017

Something that keeps the Row selected on refresh is having a Primary key in the datashape of the data passed to the Mashup.

So go to your datashape and if possible add a primary key designation.

That should keep the selection upon refresh.