Skip to main content
5-Regular Member
February 5, 2016
Solved

Styling selected rows in a Repeater

  • February 5, 2016
  • 1 reply
  • 3819 views

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.

Best answer by Aanjan

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'.

1 reply

5-Regular Member
February 5, 2016

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.

chmaloof5-Regular MemberAuthor
5-Regular Member
February 5, 2016

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?

Aanjan5-Regular MemberAnswer
5-Regular Member
February 9, 2016

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'.