Questions tagged [repeater]

The Repeater control is used to display a repeated list of items that are bound to the control.

The ASP.NET Repeater is a basic container control that allows you to create custom lists from any data available to the page. It's a handy control, especially since most ASP.NET pages that display data need to repeat the same kinds of data over and over.

2797 questions
14
votes
10 answers

Why Repeaters in ASP.NET?

I'm a Ruby on Rails / PHP guy, and my company got me to work with ASP.NET. It's not too bad, I'm glad to learn a new language but since I started working with this technology everyone is bothering me about Repeaters. The thing is that I totally fail…
marcgg
  • 65,020
  • 52
  • 178
  • 231
13
votes
6 answers

How can I use a List<> Collection as a Repeater Datasource in ASP.NET with C#

I have a list collection like below : using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace FileExplorer.Classes { public class NewAddedFiles { public string FileName; public string…
SilverLight
  • 19,668
  • 65
  • 192
  • 300
13
votes
4 answers

ASP.NET Repeater Template, Conditional Code for every Nth element

I'm using an asp.net repeater to create a bunch of images. The image markup is all the same so the standard is fine. However, I want to wrap K images in a div. Lets say I bind 25+ images to the repeater and I want 5 images per div.…
ckarbass
  • 3,651
  • 7
  • 34
  • 43
13
votes
2 answers

JSF2 Paging / Pager for Repeater

Do you know this feeling when every code you write works immedietly and you underrun your schedule :-P It's like 'oh yeah now I have time to make it perfect'. That's where I am at the moment^^ So I implemented a repeater with JSF (ui:repeat) and I…
Sven
  • 6,288
  • 24
  • 74
  • 116
13
votes
6 answers

How to access the item being data bound during ItemDataBound?

I want to get at the item that is being data bound, during the ItemDataBound event of an asp:repeater. I tried the following (which was an unaccepted answer in a stackoverflow question): protected void myRepeater_ItemDataBound(object sender,…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
13
votes
2 answers

Why is e.Item.DataItem null on ItemDataBound event when binding an asp:net Repeater to a Collection?

I'm trying to bind a collection implementing the ICollection, IEnumerable and IList interface to an asp.net repeater. The Collection is named CustomCollection. So I'm setting the datasource of the repeater to the collection, as…
Tomas Vinter
  • 2,690
  • 8
  • 36
  • 45
12
votes
4 answers

How to repeat value of array in Flutter

I'm iOS Developer and new for Flutter. In the Swift language If we want to repeat the same value for a specific time in the Array. Ex. If In the Array I want to repeat 0 for 5 times then I can do by one line of code like below. let fiveZeros =…
Govaadiyo
  • 5,644
  • 9
  • 43
  • 72
12
votes
3 answers

groupname doesn't work in more than one radiobutton inside repeater asp.net

I have a repeater and inside the repeater a radiobutton control, in code behind I fill the groupname for the radiobutton control, so, when I run it, I have a table with many rows and some of them have radiobutton:
Esraa_92
  • 1,558
  • 2
  • 21
  • 48
12
votes
1 answer

Angular.js: filter ng-repeat by absence in array

I need to filter items in ng-repeat so that only the items which not appear in alreadyAddedValues() array will be shown: $scope.values() =…
Paul
  • 25,812
  • 38
  • 124
  • 247
12
votes
5 answers

Is it possible to pass a value to the SelectMethod of a Repeater?

ASP.Net 4.5 introduces new ways to bind data to controls like the Repeater through the SelectMethod property: calls the Codebehind method public…
magnattic
  • 12,638
  • 13
  • 62
  • 115
11
votes
2 answers

Is there a repeater control in C# windows form in Visual 2010? Or an alternative?

Is there a repeater control in C# windows form in Visual 2010 ? Or an alternative ?
JatSing
  • 4,857
  • 16
  • 55
  • 65
11
votes
7 answers

How to use button in repeater control?

I am using asp.net 3.5 with c#.I want to invoke button click event inside repeater control.
PrateekSaluja
  • 14,680
  • 16
  • 54
  • 74
11
votes
2 answers

Links/icons that are generated in codebehind aren't showing up on certain mobile devices

UPDATE: I decided to test if it was an issue with fontawesome, so I replaced the icons with plain text: V
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
11
votes
1 answer

How to use paging with Repeater control in ASP.NET?

Jeyhun
  • 459
  • 3
  • 8
  • 17
11
votes
1 answer

Get values of all checkboxes in repeater

When the user clicks a "Save Changes" button, I need to get the values of all the checkboxes inside a repeater. If I can't get the values, the ID is also ok. Master page code: