Last post Dec 19, 2013 05:00 AM by Terry Guo - MSFT
Dec 18, 2013 02:10 PM|diegochb|LINK
Hello, I can't find an event that is trigered after the whole repeater is loaded (not itemdatabound).
I'm using a repeater for a "top 5" list, and I want to add "empty slots" after if finishes loading if there wheren't 5 items.
Where can I call it to
if (rep.Items.Count < 5)
int desde = rep.Items.Count + 1;
for (int j = desde; j < 6; j++)
I tested it in page load to see if it works, and it obiously adds 5 itmes to the ones that the database loads.
Dec 19, 2013 05:00 AM|Terry Guo - MSFT|LINK
If you want to call event when loaded, I suggest you using the PreRender event.
Which occurs after the Control object is loaded but prior to rendering. (Inherited from
More information please refer to:
Hope it helps.