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.

2759 questions
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,539
  • 7
  • 31
  • 43
13
votes
1 answer

Using an ASP.NET repeater with an array?

This may be a silly question but I was writing a quick test page and realised that I didn't know how to bind an array or ArrayList of strings, for example, to an ASP.NET Repeater. I experimented a bit.
Rob Stevenson-Leggett
  • 33,849
  • 21
  • 84
  • 138
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
  • 5,990
  • 23
  • 69
  • 110
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
  • 220,884
  • 228
  • 805
  • 1,125
12
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
  • 17,622
  • 58
  • 171
  • 277
12
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
  • 3,957
  • 9
  • 44
  • 107
12
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,610
  • 7
  • 34
  • 45
12
votes
1 answer

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

Jeyhun
  • 439
  • 3
  • 7
  • 16
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
  • 23,702
  • 36
  • 106
  • 215
12
votes
4 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
  • 11,529
  • 10
  • 59
  • 109
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,573
  • 16
  • 52
  • 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,184
  • 16
  • 52
  • 74
11
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,481
  • 1
  • 15
  • 43
11
votes
5 answers

If statement in repeaters ItemTemplate

I'm using an ASP.NET Repeater to display the contents of a . It looks something like this:
Vivendi
  • 16,485
  • 22
  • 93
  • 175
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: