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/RegionDisplay.php | |
parent | 67666aaccb4b4743a084b214722e1173e827e9d1 (diff) |
merged documentation changes from branch/3.1 to trunk/
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php deleted file mode 100644 index 40d1841e..00000000 --- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php
-
-class RegionDisplay extends TRepeaterItemRenderer
-{
- /**
- * This method is invoked when the data is being bound
- * to the parent repeater.
- * At this time, the <b>Data</b> is available which
- * refers to the data row associated with the parent repeater item.
- */
- public function onDataBinding($param)
- {
- parent::onDataBinding($param);
- $this->Repeater->DataSource=$this->Data['detail'];
- $this->Repeater->dataBind();
- }
-
- public function itemCreated($sender,$param)
- {
- static $itemIndex=0;
- $item=$param->Item;
- if($item->ItemType==='Item' || $item->ItemType==='AlternatingItem')
- $item->Row->BackColor=$itemIndex%2 ? "#BFCFFF" : "#E6ECFF";
- $itemIndex++;
- }
-}
-
-?>
\ No newline at end of file |