diff options
author | ctrlaltca@gmail.com <> | 2011-06-02 09:30:55 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-02 09:30:55 +0000 |
commit | 8aa0d56705a71894a80c1293730b6c67cddc8a40 (patch) | |
tree | fda6cea608f8fe2ade2f9a4f51e39c54846a3b17 /demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataList/Home.page | |
parent | 3baba6fb4b6c17ff77eb4a13a812ccde9263dce2 (diff) |
added documentation for TActiveDataList, TActiveDataGrid and TActiveRepeater class
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataList/Home.page')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataList/Home.page | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataList/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataList/Home.page new file mode 100644 index 00000000..ebd88424 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataList/Home.page @@ -0,0 +1,125 @@ +<com:TContent ID="body">
+
+<h1>TActiveDataList Sample</h1>
+
+<com:TActiveDataList
+ ID="DataList"
+ DataKeyField="id"
+ OnEditCommand="editItem"
+ OnCancelCommand="cancelItem"
+ OnUpdateCommand="updateItem"
+ OnDeleteCommand="deleteItem"
+ OnSelectedIndexChanged="selectItem"
+ HeaderStyle.BackColor="black"
+ HeaderStyle.ForeColor="white"
+ ItemStyle.BackColor="#BFCFFF"
+ AlternatingItemStyle.BackColor="#E6ECFF"
+ EditItemStyle.BackColor="lightgreen"
+ SelectedItemStyle.BackColor="lightyellow">
+
+<prop:HeaderTemplate>
+<div style="font-weight:bold; text-align:center;">Computer Parts</div>
+</prop:HeaderTemplate>
+
+<prop:ItemTemplate>
+<table border="0" width="100%">
+<tr>
+ <td>
+ <com:TActiveLinkButton
+ Text=<%#$this->DataItem['id']%>
+ CommandName="select"
+ />
+ <%#$this->DataItem['name']%>
+ </td>
+ <td align="right">
+ <com:TActiveLinkButton
+ Text="Edit"
+ CommandName="edit"
+ />
+ <com:TActiveLinkButton
+ Text="Delete"
+ CommandName="delete"
+ Attributes.onclick="if(!confirm('Are you sure?')) return false;"
+ />
+ </td>
+</tr>
+</table>
+</prop:ItemTemplate>
+
+<prop:SelectedItemTemplate>
+<table border="1" width="100%">
+<tr>
+ <th>ID</th><th>Name</th><th>Quantity</th><th>Price</th>
+</tr>
+<tr>
+ <td align="right"><%#$this->DataItem['id'] %></td>
+ <td align="right"><%#$this->DataItem['name'] %></td>
+ <td align="right"><%#$this->DataItem['quantity'] %></td>
+ <td align="right">$<%#$this->DataItem['price'] %></td>
+</tr>
+<tr>
+ <td colspan="4" align="right">
+ <com:TActiveLinkButton
+ Text="Edit"
+ CommandName="edit"
+ />
+ <com:TActiveLinkButton
+ Text="Delete"
+ CommandName="delete"
+ Attributes.onclick="if(!confirm('Are you sure?')) return false;"
+ />
+ </td>
+</tr>
+</table>
+</prop:SelectedItemTemplate>
+
+<prop:EditItemTemplate>
+<table border="0" width="100%">
+<tr>
+ <td align="right">ID</td>
+ <td><b><%#$this->DataItem['id']%></b></td>
+</tr>
+<tr>
+ <td align="right">Name</td>
+ <td><com:TTextBox
+ ID="ProductName"
+ Text=<%#$this->DataItem['name'] %>
+ />
+ </td>
+</tr>
+<tr>
+ <td align="right">Quantity</td>
+ <td><com:TTextBox
+ ID="ProductQuantity"
+ Text=<%#$this->DataItem['quantity'] %>
+ />
+ </td>
+</tr>
+<tr>
+ <td align="right">Price</td>
+ <td><com:TTextBox
+ ID="ProductPrice"
+ Text=<%#$this->DataItem['price'] %>
+ />
+ </td>
+</tr>
+<tr>
+ <td align="right">Imported</td>
+ <td><com:TCheckBox
+ ID="ProductImported"
+ Checked=<%#$this->DataItem['imported'] %>
+ />
+ </td>
+</tr>
+<tr>
+ <td colspan="2" align="right">
+ <com:TActiveLinkButton Text="Save" CommandName="update" />
+ <com:TActiveLinkButton Text="Cancel" CommandName="cancel" />
+ </td>
+</tr>
+</table>
+</prop:EditItemTemplate>
+
+</com:TActiveDataList>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file |