summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TRepeater/Sample1.page
blob: f519342da899bd262d3e5001e29466aa031eb470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<com:TContent ID="body">

<h1>TRepeater Sample 1</h1>

<com:TRepeater ID="Repeater" EnableViewState="false">

<prop:HeaderTemplate>
<table cellpadding="2">
<tr style="color:white;background-color:black">
  <th>ID</th>
  <th>Name</th>
  <th>Quantity</th>
  <th>Price</th>
  <th>Imported</th>
</tr>
</prop:HeaderTemplate>

<prop:ItemTemplate>
<tr style="background-color:#BFCFFF">
<td><%#$this->DataItem['id']%></td>
<td><%#$this->DataItem['name']%></td>
<td><%#$this->DataItem['quantity']%></td>
<td><%#$this->DataItem['price']%></td>
<td><%#$this->DataItem['imported']?'Yes':'No'%></td>
</tr>
</prop:ItemTemplate>

<prop:AlternatingItemTemplate>
<tr style="background-color:#E6ECFF">
<td><%#$this->DataItem['id']%></td>
<td><%#$this->DataItem['name']%></td>
<td><%#$this->DataItem['quantity']%></td>
<td><%#$this->DataItem['price']%></td>
<td><%#$this->DataItem['imported']?'Yes':'No'%></td>
</tr>
</prop:AlternatingItemTemplate>

<prop:FooterTemplate>
<tr style="color:white;background-color:black;text-align:center;">
<td colspan="5">Computer Parts Inventory</td>
</tr>
</table>
</prop:FooterTemplate>

</com:TRepeater>

</com:TContent>