Sorting by Selected item in RG

Hey, So I’ve got a repeating group with 10 items. I’d like it to dynamically sort based on the items that have been toggled on.

Users toggles item
Item Sorts to top of the list.

Struggling to do this as the toggle is inside the RG, and can’t be read.

Assuming the ‘toggle’ relates to a yes/no field on the datatype this should be very simple…

Just sort the RG datasource by the ‘Toggle’ (yes/no) field - descending ‘Yes’ - and (assuming there’s a Toggle element in the RG cell) use autobinding to set the Toggle value on the current cell’s thing.

Trick is I’m not changing the data, since I’m loading the selection into a state so that this is all local, not db driven.

This topic was automatically closed after 70 days. New replies are no longer allowed.