summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages')
-rwxr-xr-xdemos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.page8
-rwxr-xr-xdemos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.php1
2 files changed, 7 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.page
index 546166eb..7b0b4c2b 100755
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.page
@@ -6,6 +6,8 @@
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>
+<com:TActiveRepeater ID="Repeater" OnItemDataBound="repeaterDataBound">
+<prop:HeaderTemplate>
<table>
<tr>
<th>Name</th>
@@ -13,7 +15,7 @@ The following example allows users to modify the existing tabular data using a <
<th>Price</th>
<th>Imported</th>
</tr>
-<com:TActiveRepeater ID="Repeater" OnItemDataBound="repeaterDataBound">
+</prop:HeaderTemplate>
<prop:ItemTemplate>
<tr>
<td>
@@ -47,8 +49,10 @@ The following example allows users to modify the existing tabular data using a <
</td>
</tr>
</prop:ItemTemplate>
-</com:TActiveRepeater>
+<prop:FooterTemplate>
</table>
+</prop:FooterTemplate>
+</com:TActiveRepeater>
<div>
<com:TActiveButton Text="Save" OnClick="saveInput"/>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.php
index 57e75d72..138118ed 100755
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.php
@@ -60,6 +60,7 @@ class Home extends TPage
$data=array();
foreach($this->Repeater->Items as $item)
{
+ if($item->getItemType()!=TListItemType::Item && $item->getItemType()!=TListItemType::AlternatingItem) continue;
$item=array(
'id'=>$products[$index]['id'],
'name'=>$item->ProductName->Text,