summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket900.page
blob: 41c0fbc23ca8400b8cf16f9665000a69b0cb4095 (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
<com:TContent ID="Content">

Current Command:<com:TLabel ID="CommandName" Text="None." /><br />

<com:TDataGrid
    CellPadding="2"
    ID="DataGrid"
    DataKeyField="title"
    AutoGenerateColumns="false"
    OnEditCommand="editItem"
    OnUpdateCommand="saveItem"
    OnCancelCommand="cancelItem"
    OnDeleteCommand="deleteItem"
    >
 
    <com:TTemplateColumn >
        <prop:ItemTemplate>
            <com:TLabel Text=<%# $this->Parent->Data['title']%>/>
        </prop:ItemTemplate>
        <prop:EditItemTemplate>
            <com:TTextBox ID="TextBox" Text=<%# $this->Parent->Data['title']%>/>
            <com:TRequiredFieldValidator
                ControlToValidate="TextBox"
                ErrorMessage="*"
                Text="Field required."/>
        </prop:EditItemTemplate>
    </com:TTemplateColumn>
    <com:TEditCommandColumn
  	ButtonType="ImageButton"
        HeaderText="Edit"
	EditText="Edit"
        UpdateText="Save"
	CancelText="Cancel"
        />
    <com:TButtonColumn
        ID="DeleteColumn"
        HeaderText="Delete"
        HeaderStyle.Width="50px"
        ItemStyle.HorizontalAlign="Center"
        ItemStyle.Font.Italic="false"
        Text="Delete"
        CommandName="delete"
        />
</com:TDataGrid>
</com:TContent>