From fd76b5617e3c136be2f8b5374e7629d2bea77070 Mon Sep 17 00:00:00 2001 From: Jens Klaer Date: Thu, 22 Oct 2015 10:48:13 +0200 Subject: 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 --- .../pages/ActiveControls/Samples/TActiveRepeater/Home.page | 8 ++++++-- .../pages/ActiveControls/Samples/TActiveRepeater/Home.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'demos/quickstart/protected') 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 TActiveRepeater. 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 save button, the input data is displayed in a table at the bottom of the page.

+ + @@ -13,7 +15,7 @@ The following example allows users to modify the existing tabular data using a < - + - +
NamePrice Imported
@@ -47,8 +49,10 @@ The following example allows users to modify the existing tabular data using a <
+ +
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, -- cgit v1.2.3