Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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
Thanks
Solved! Go to Solution.
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)
This seems a bug, better you open a support case.
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
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.
Hi Pai,
Thanks for the response.
Here the problem is Autoselectfirstrow is not working when reload happens.
Thanks
Even after adding a primary key definition to some of the fields of the data shape of the service output?
After adding primary it is retaining previous selection. But I want it should select first row when reload happens.
Thanks
FYI
I have seen same issue with Grid widget also.
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)
That worked, Great. I hope product team will fix this issue.
Thanks