diff options
author | ctrlaltca@gmail.com <> | 2011-06-02 09:56:29 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-02 09:56:29 +0000 |
commit | b9f9a16d7eefc48ac489c8cb2b87749459bb3d38 (patch) | |
tree | 2cec49f90dd8cd2071bd86efa9c2a6e8a6dfcbe4 /demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample3.page | |
parent | 67666aaccb4b4743a084b214722e1173e827e9d1 (diff) |
merged documentation changes from branch/3.1 to trunk/
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample3.page')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample3.page | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample3.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample3.page deleted file mode 100644 index 1ea4e9dc..00000000 --- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample3.page +++ /dev/null @@ -1,104 +0,0 @@ -<com:TContent ID="body">
-
-<h1>TActiveRepeater Sample 3</h1>
-
-<p>
-The following example allows users to modify the existing tabular data using a <tt>TActiveRepeater</tt>. Two validators are used in the repeater to ensure the validity of user inputs. One is to ensure product names are not empty, the other ensures product prices are valid numeric format. After clicking on the <tt>save</tt> button, the input data is displayed in a table at the bottom of the page.
-</p>
-
-<table>
-<tr>
- <th>Name</th>
- <th>Category</th>
- <th>Price</th>
- <th>Imported</th>
-</tr>
-<com:TRepeater ID="Repeater" OnItemDataBound="repeaterDataBound">
-<prop:ItemTemplate>
-<tr>
- <td>
- <com:TActiveTextBox
- ID="ProductName"
- Text=<%#$this->Data['name']%>
- AutoPostBack="true"
- OnTextChanged="Page.saveInput"
- OnCallback="Page.renderRepeater2"/>
- </td>
- <td>
- <com:TActiveDropDownList
- ID="ProductCategory"
- AutoPostBack="true"
- OnSelectedIndexChanged="Page.saveInput"
- OnCallback="Page.renderRepeater2"/>
- </td>
- <td>
- <com:TActiveTextBox
- ID="ProductPrice"
- Columns="7"
- Text=<%#$this->Data['price']%>
- AutoPostBack="true"
- OnTextChanged="Page.saveInput"
- OnCallback="Page.renderRepeater2"/>
- </td>
- <td>
- <com:TActiveCheckBox
- ID="ProductImported"
- Checked=<%#$this->Data['imported']%>
- AutoPostBack="true"
- OnCheckedChanged="Page.saveInput"
- OnCallback="Page.renderRepeater2"/>
- <com:TRequiredFieldValidator
- ControlToValidate="ProductName"
- ErrorMessage="Product name cannot be empty."
- Display="Dynamic" />
- <com:TRegularExpressionValidator
- ControlToValidate="ProductPrice"
- RegularExpression="\d+(\.\d{1,2})?"
- ErrorMessage="Product price must be in the format of ddd.dd"
- Display="Dynamic" />
- </td>
-</tr>
-</prop:ItemTemplate>
-</com:TRepeater>
-</table>
-
-<div>
-<com:TActiveButton Text="Save" OnClick="saveInput" OnCallback="renderRepeater2"/>
-</div>
-
-<com:TSafeHtml>
-<com:TActiveRepeater ID="Repeater2" EnableViewState="false" >
-
-<prop:HeaderTemplate>
-<table cellpadding="2">
-<tr style="color:white;background-color:black">
- <th>ID</th>
- <th>Name</th>
- <th>Category</th>
- <th>Price</th>
- <th>Imported</th>
-</tr>
-</prop:HeaderTemplate>
-
-<prop:ItemTemplate>
-<tr style="<%# 'background-color:' . ($this->ItemIndex%2 ? '#BFCFFF' : '#E6ECFF') %>">
-<td><%#$this->Data['id']%></td>
-<td><%#$this->Data['name']%></td>
-<td><%#$this->Data['category']%></td>
-<td><%#$this->Data['price']%></td>
-<td><%#$this->Data['imported']?'Yes':'No'%></td>
-</tr>
-</prop:ItemTemplate>
-
-<prop:FooterTemplate>
-<tr style="color:white;background-color:black;text-align:center;">
-<td colspan="5">Computer Parts Inventory</td>
-</tr>
-</table>
-</prop:FooterTemplate>
-
-</com:TActiveRepeater>
-
-</com:TSafeHtml>
-
-<div class="last-modified">$Id: Sample3.page 1688 2007-02-09 22:48:31Z xue $</div></com:TContent>
\ No newline at end of file |