Skip to main content
5-Regular Member
Feb 5, 2016 9:26 PM UTC
Solved

Styling selected rows in a Repeater

The Repeater widget has an unusual default row selection indicator: a stylable rectangle at the left edge of the row.  We're going for a more standard, recognizable look, like darkening the background of the mashup displayed in the selected row, or giving the selected row a border.

Has anyone had experience with doing this?  I'm not even sure how I'd inform the selected row that it's selected, so that it could change its rendering.

AanjanAnswer
5-Regular Member
Feb 9, 2016 4:32 PM UTC

Ah that's the RepeaterSelectedStyle property on the Repeater widget. You can easily create a custom style to just get a border around your cell by creating a new style with blanks for all colors except 'Line Color'.

6 replies

5-Regular Member
Feb 5, 2016 9:45 PM UTC

Chris, can you attach a screenshot for this? By default, the Repeater's overall style and cell styles can be customized at the widget level itself.

Translate
chmaloof5-Regular MemberAuthor
5-Regular Member
Feb 5, 2016 9:51 PM UTC

repeater.png

Thanks for the quick reply!  Instead of the blue bar, we'd like to change the look of the repeated widget for the selected row.  Is there a way to do that?

Translate
Aanjan5-Regular MemberAnswer
5-Regular Member
Feb 9, 2016 4:32 PM UTC

Ah that's the RepeaterSelectedStyle property on the Repeater widget. You can easily create a custom style to just get a border around your cell by creating a new style with blanks for all colors except 'Line Color'.

Translate