Reverse sorting repeater data


#1

Is there a way to reverse sort the repeater data? I’m having a situation wherein I have to simulate that data in the repeater is added to the top (like a stack) and not at the end.


#2

Yes, in the Add Sort action you can choose the sort order. If you choose “Toggle” you can also specify the default sort order:

image

So if you are adding new row/s you can either immediately follow the Add Rows with an Add Sort or you can “bake it” into the repeater by adding it to the repeater’s Loaded event (which gets called on the initial repeater load after all the Item Loaded calls (one per row in the repeater’s dataset.) Something like this:

image


#3

Sorry for the delay in responding. This is very helpful as usual!


closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.