diff options
author | Jens Klaer <kj.landwehr.software@gmail.com> | 2015-10-22 10:48:13 +0200 |
---|---|---|
committer | Jens Klaer <kj.landwehr.software@gmail.com> | 2015-10-22 10:48:13 +0200 |
commit | fd76b5617e3c136be2f8b5374e7629d2bea77070 (patch) | |
tree | 719eff831c25b0e557b321ed826b6d6365496b64 /demos | |
parent | a262ce578b6584ab71421a7fb59d506848f60683 (diff) |
extended ISurroundable to provide the surrounding tag in addition to the id
- ISurroundable introducing getSurroundingTag(), adjusted controls
implementing the interface
- TActiveDataGrid/TActiveRepeater now support changing the container tag
to avoid invalid html in specific situations
- revised corresponding quickstart demos
Diffstat (limited to 'demos')
-rwxr-xr-x | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.page | 8 | ||||
-rwxr-xr-x | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Home.php | 1 |
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, |