summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page
blob: 95fea89ba6b29c3a7d34dc72ac35e6718f5077d1 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<com:TContent ID="body">

<h1>TRadioButtonList Samples</h1>

<table class="sampletable">

<tr>
<td class="samplenote">
Radio button list with default settings:
</td>
<td class="sampleaction">
<com:TRadioButtonList>
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
</td>
</tr>

<tr>
<td class="samplenote">
Radio button list with customized cellpadding, cellspacing, color and text alignment:
</td>
<td class="sampleaction">
<com:TRadioButtonList
	CellPadding="5"
	CellSpacing="1"
	BackColor="silver"
	TextAlign="Left">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
</td>
</tr>

<tr>
<td class="samplenote">
Radio button list with vertical (default) repeat direction:
</td>
<td class="sampleaction">
<com:TRadioButtonList RepeatColumns="3">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
</td>
</tr>

<tr>
<td class="samplenote">
Radio button list with horizontal repeat direction:
</td>
<td class="sampleaction">
<com:TRadioButtonList RepeatDirection="Horizontal"	RepeatColumns="3">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
</td>
</tr>

<tr>
<td class="samplenote">
Radio button list with flow layout and vertical (default) repeat direction:
</td>
<td class="sampleaction">
<com:TRadioButtonList RepeatLayout="Flow" RepeatColumns="3">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
</td>
</tr>

<tr>
<td class="samplenote">
Radio button list with flow layout and horizontal repeat direction:
</td>
<td class="sampleaction">
<com:TRadioButtonList
	RepeatLayout="Flow"
	RepeatDirection="Horizontal"
	RepeatColumns="3">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
</td>
</tr>

<tr>
<td class="samplenote">
Radio button list's behavior upon postback:
</td>
<td class="sampleaction">
<com:TRadioButtonList ID="RadioButtonList">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
<com:TButton Text="Submit" Click="buttonClicked" />
<br/>
<com:TLabel ID="SelectionResult" ForeColor="red" />
</td>
</tr>

<tr>
<td class="samplenote">
Auto postback radio button list:
</td>
<td class="sampleaction">
<com:TRadioButtonList AutoPostBack="true" SelectedIndexChanged="selectionChanged">
  <com:TListItem Value="value 1" Text="item 1" />
  <com:TListItem Value="value 2" Text="item 2" Selected="true" />
  <com:TListItem Value="value 3" Text="item 3" />
  <com:TListItem Value="value 4" Text="item 4" />
</com:TRadioButtonList>
<com:TLabel ID="SelectionResult2" ForeColor="red" />
</td>
</tr>

</table>

</com:TContent>