summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.page
blob: 98745b5557cc99ef275caaa429fe918661ee98e2 (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
<com:TContent ID="Content">

	<style>
	.autocomplete
	{
	  border:1px solid #919EA9;
	  background-color:white;
	}
	.autocomplete ul, .autocomplete li
	{
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: 12px;
		font-family: Tahoma, Arial, Helvetica, sans-serif;
		color: #333;
	}

	ul.different
	{
		background-color: pink;
	}

	.autocomplete li
	{
		padding: 4px;
		border-top: 1px solid #ccc;
	}
	.autocomplete .selected
	{
	  background-color: #ffc;
	}
	</style>

	<h1 id="heading">TAutoComplete Test</h1>
	<div><strong>Manual Testing Required</strong></div>

		<com:TAutoComplete Style="width: 20em"
			ID="textbox1"
			OnSuggest="suggestCountries"
			Separator=", "
			OnSuggestionSelected="suggestion_selected"
			ResultPanel.CssClass="autocomplete" />

		<com:TAutoComplete Style="width: 30em; height: 20em" TextMode="MultiLine"
				ID="textbox2"
				OnSuggest="suggestCountries"
			OnCallback="callback_requested"
			OnSuggestionSelected="suggestion_selected"
			TextCssClass="select"
			AutoPostBack="true"
				Separator=", \n"
				ResultPanel.CssClass="autocomplete">
			<prop:Suggestions.HeaderTemplate>
				<ul class="different">
			</prop:Suggestions.HeaderTemplate>
			<prop:Suggestions.ItemTemplate>
				<li>
					&lt;&lt;
					<span class="select"><%# $this->Data %></span>
					 &gt;&gt;
				</li>
			</prop:Suggestions.ItemTemplate>
		</com:TAutoComplete>

		<com:TAutoComplete Style="width: 20em"
			id="textbox3"
			OnSuggest="suggestCountries"
			OnCallback="callback_requested"
			OnSuggestionSelected="suggestion_selected"
			Separator=", " AutoPostBack="true"
			ResultPanel.CssClass="autocomplete" />

	<p><br /></p>
	<com:TActiveLabel ID="label1" Text="Label 1" />

		<com:TAutoComplete Style="width: 10em"
			id="textbox4"
			OnSuggest="suggestCountries"
			OnCallback="callback_requested"
			OnSuggestionSelected="suggestion_selected"
			ResultPanel.CssClass="autocomplete"
			MinChars="4" Frequency="2" />

	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
	<p><br /></p>
</com:TContent>