diff options
author | mikl <> | 2008-10-13 19:54:32 +0000 |
---|---|---|
committer | mikl <> | 2008-10-13 19:54:32 +0000 |
commit | 210f6d6d29be3c93251a515616408c0872d6da26 (patch) | |
tree | 4cb4ca944bf5d608e7e3a290acfb46aba1e3e275 /tests/FunctionalTests/tickets/protected/pages/Ticket900.page | |
parent | 7bc7bfe01d2dbf835130cbe579d15c0f5b647c55 (diff) |
Added Testcase for #900
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket900.page')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket900.page | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket900.page b/tests/FunctionalTests/tickets/protected/pages/Ticket900.page new file mode 100644 index 00000000..41c0fbc2 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket900.page @@ -0,0 +1,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> |