summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/issues/protected/pages/Issue516.page
blob: c922c6e1692ff238f58620ef8c7442b0b0594338 (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
 <com:TContent ID="Content">

<h1>Issue 516 Test</h1>

<com:TActiveDataGrid
	Width="800px"
	CellPadding="2"
	ID="DataGrid"
	DataKeyField="ISBN"
	AutoGenerateColumns="false"
	HeaderStyle.BackColor="black"
	HeaderStyle.ForeColor="white"
	ItemStyle.BackColor="#BFCFFF"
	ItemStyle.Font.Italic="true"
	AlternatingItemStyle.BackColor="#E6ECFF"
	EditItemStyle.BackColor="lightyellow"
	OnEditCommand="editItem"
	OnUpdateCommand="saveItem"
	OnCancelCommand="cancelItem"
	>
	<com:TTemplateColumn
		ID="BookTitleColumn"
		HeaderText="Book Title"
		HeaderStyle.Width="400px"
	>
		<prop:ItemTemplate>
			<com:TLiteral Text="<%# $this->Parent->Data['title'] %>" Encode="true" />
		</prop:ItemTemplate>
		<prop:EditItemTemplate>
			<com:TTextBox ID="TextBox" Text="<%# $this->Parent->Data['title'] %>" />
			<com:TRequiredFieldValidator
				ControlToValidate="TextBox"
				Display="Dynamic"
				ErrorMessage="<br/>Please provide a title."
				ValidationGroup = "Group1"
			/>
		</prop:EditItemTemplate>
	</com:TTemplateColumn>
	<com:TActiveEditCommandColumn
		HeaderText="Edit"
		HeaderStyle.Width="100px"
		UpdateText="Save"
		ItemStyle.HorizontalAlign="Center"
		ItemStyle.Font.Italic="false"
		ValidationGroup = "Group1"
		/>
</com:TActiveDataGrid>

 </com:TContent>