Button under a repeater



Hi ,
I need a create “new row” button at the bottom of a repeater.

I have tried to calculate the number of rows shown, and the height of the repeater, to move a button from the top to the bottom.
But the calculation always returns the full height and the full number of rows.

try out moving button below the repeater.rp (4.2 MB)



You can enclose the repeater in a dynamic panel that is set to fit to its content, so when the repeater resizes, the dynamic panel resizes to accommodate it. Then you can use the DP’s Resized event. E.g.,

On Resized (of fit-to-content dynamic panel containing repeater)
  Move button to x = (blank), y = [[This.bottom + 10]]


Thank you, I will try this out