I am having the same problem with the Repeater as I used to have with the table: when you add a dataset to the page AND put in a query on that dataset in code, the page first displays ALL rows (no criteria in dataset definition) and then, after a second round trip to the DB, shows the result of the query (= less rows).
I solved this by deleting the dataset on the page and getting rid of the $onReady on the dataset in code. If you do, the table magically maintained its relation to the collection and the chosen fields to display.
The repeater, unfortunately, works different. If you delete the dataset, the repeater looses connection to collection and fields. So I put the dataset back in. But this results in the same behaviour as the table at first:
- all rows are shown
- query is executed, less rows are returned, repeater result is smaller.
Now, I can hide the repeater and show it after the query, but I would rather prevent the double trip to the DB. Is this possible?