blob: eaf9a282995a88ab941ee2d9c78940982381ed87 (
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="Content">
<h1>TRatingList Examples</h1>
<h2>Default TRatingList</h2>
<com:TLabel ID="label1" Text="Rate it:" />
<com:TRatingList CaptionID="label1">
<com:TListItem Text="Fair" />
<com:TListItem Text="Average" />
<com:TListItem Text="Good" />
<com:TListItem Text="Excellent" />
</com:TRatingList>
<h2>TRatingList in vertical mode, SelectedIndex=2</h2>
<com:TLabel ID="label2" Text="Rate it:" />
<com:TRatingList CaptionID="label2" SelectedIndex="2" RepeatDirection="Vertical" Style="caption-side: right;">
<com:TListItem Text="Poor" />
<com:TListItem Text="Fair" />
<com:TListItem Text="Average" />
<com:TListItem Text="Good" />
<com:TListItem Text="Excellent" />
<com:TListItem Text="Super" />
</com:TRatingList>
<h2>TRatingList with RatingStyle=blocks, AutoPostback=true, SelectedValue=Good</h2>
<com:TLabel ID="label3" Text="Rate it:" />
<com:TRatingList ID="Rating3" CaptionID="label3" RatingStyle="blocks" SelectedValue="Good" AutoPostBack="true" OnSelectedIndexChanged="rating3_selectionChanged">
<com:TListItem Text="Poor" />
<com:TListItem Text="Fair" />
<com:TListItem Text="Average" />
<com:TListItem Text="Good" />
<com:TListItem Text="Excellent" />
<com:TListItem Text="Super" />
</com:TRatingList>
Postback result: <com:TLabel ID="labelResult3" />
<h2>TRatingList with AllowInput=false, Rating=4.6</h2>
<com:TLabel ID="label4" Text="Rate it:" />
<com:TRatingList CaptionID="label4" AllowInput="false" Rating="4.6">
<com:TListItem Text="Poor" />
<com:TListItem Text="Fair" />
<com:TListItem Text="Average" />
<com:TListItem Text="Good" />
<com:TListItem Text="Excellent" />
<com:TListItem Text="Super" />
</com:TRatingList>
</com:TContent>
|