summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.page
blob: 115b833a715c76b2d01cd2697aaa03d28d9d8d1b (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
<%@ MasterClass="Application.pages.TestMasterPage" %>
<com:TContent ID="body">

	<h1>Active List Box Functional Test</h1>

	<com:TActiveListBox ID="list1" OnCallback="list1_callback" SelectionMode="Multiple" style="width:20em;height:10em">
		<com:TListItem Value="value 1" Text="item 1" />
		<com:TListItem Value="value 2" Text="item 2" />
		<com:TListItem Value="value 3" Text="item 3" />
		<com:TListItem Value="value 4" Text="item 4" />
		<com:TListItem Value="value 5" Text="item 5" />
	</com:TActiveListBox>

	<div style="margin:1em; padding:1em; border:1px solid #ccc; text-align:center;">
	<com:TActiveLabel ID="label1" Text="Label 1" />
	</div>
	<div style="margin:1em; padding:0.5em; text-align:center; border:1px solid #ccc;">
		<com:TActiveButton ID="button1" Text="Select Index 1 2 3" OnClick="select_index_123" />
		<com:TActiveButton ID="button2" Text="Clear selection" OnClick="clear_selections" />
		<com:TActiveButton ID="button3" Text="Select Value 'value 1'" OnClick="select_value_1" />
		<com:TActiveButton ID="button4" Text="Select Index 4" OnClick="select_index_4" />
		<com:TActiveButton ID="button5" Text="Select Values 'value 2', 'value 5'" OnClick="select_values_25" />
		<com:TActiveButton ID="button6" Text="Change to Multi-Select" OnClick="change_to_multiple" />
		<com:TActiveButton ID="button7" Text="Change to Single-Select" OnClick="change_to_single" />
	</div>
</com:TContent>