summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TRepeater/Sample2.page
blob: bd0e328a0765030279255b5e2ea4713866a01269 (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
48
49
50
51
52
53
54
55
56
57
58
<com:TContent ID="body">

<h1>TRepeater Sample 2</h1>

<com:TRepeater ID="Repeater"
	EnableViewState="false"
    OnItemDataBound="dataBindRepeater2"
    OnItemCreated="repeaterItemCreated">

<prop:HeaderTemplate>
<table cellspacing="1" style="border:1px solid silver">
</prop:HeaderTemplate>

<prop:ItemTemplate>
<tr>
<com:TTableCell ID="Cell">
  <%#$this->Data %>
</com:TTableCell>
<td>
    <com:TRepeater
         ID="Repeater2"
         EnableViewState="false"
         OnItemCreated="Page.repeater2ItemCreated">

    <prop:HeaderTemplate>
    <table cellspacing="1">
    </prop:HeaderTemplate>

    <prop:ItemTemplate>
    <com:TTableRow ID="Row">
      <com:TTableCell Width="70px">
        <%#$this->Data['name'] %>
      </com:TTableCell>
      <com:TTableCell Width="20">
        <%#$this->Data['age'] %>
      </com:TTableCell>
      <com:TTableCell Width="150px">
        <%#$this->Data['position'] %>
      </com:TTableCell>
    </com:TTableRow>
    </prop:ItemTemplate>

    <prop:FooterTemplate>
    </table>
    </prop:FooterTemplate>

    </com:TRepeater>
</td>
</tr>
</prop:ItemTemplate>

<prop:FooterTemplate>
</table>
</prop:FooterTemplate>

</com:TRepeater>

<div class="last-modified">$Id$</div></com:TContent>