From b9f9a16d7eefc48ac489c8cb2b87749459bb3d38 Mon Sep 17 00:00:00 2001
From: "ctrlaltca@gmail.com" <>
Date: Thu, 2 Jun 2011 09:56:29 +0000
Subject: merged documentation changes from branch/3.1 to trunk/
---
.../Samples/TActiveDataGrid/Sample1.page | 3 +-
.../Samples/TActiveDataGrid/Sample1.php | 10 ++--
.../Samples/TActiveDataGrid/Sample2.page | 17 ++++---
.../Samples/TActiveDataGrid/Sample2.php | 7 +--
.../Samples/TActiveDataGrid/Sample3.page | 4 +-
.../Samples/TActiveDataGrid/Sample3.php | 2 +-
.../Samples/TActiveDataGrid/Sample4.page | 2 +-
.../Samples/TActiveDataGrid/Sample4.php | 2 +-
.../Samples/TActiveDataGrid/Sample5.page | 39 +--------------
.../Samples/TActiveDataGrid/Sample5.php | 16 +++++--
.../Samples/TActiveDataGrid/Sample6.page | 26 ----------
.../Samples/TActiveDataGrid/Sample6.php | 56 ----------------------
12 files changed, 31 insertions(+), 153 deletions(-)
delete mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.page
delete mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.php
(limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid')
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.page
index db537902..967cdf6f 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.page
@@ -3,6 +3,7 @@
TActiveDataGrid Sample 1
Using Automatically Generated Columns
+
-$Id: Sample1.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file
+$Id: Sample1.page 2955 2011-06-02 09:30:55Z ctrlaltca@gmail.com $
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.php
index ec78006b..ada1ee6e 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample1.php
@@ -27,14 +27,10 @@ class Sample1 extends TPage
);
}
- public function onLoad($param)
+ public function buttonClicked($sender, $param)
{
- parent::onLoad($param);
- if(!$this->IsPostBack)
- {
- $this->DataGrid->DataSource=$this->Data;
- $this->DataGrid->dataBind();
- }
+ $this->DataGrid->DataSource=$this->Data;
+ $this->DataGrid->dataBind();
}
}
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.page
index 851fd157..176f14c8 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.page
@@ -14,18 +14,18 @@
ItemStyle.Font.Italic="true"
AlternatingItemStyle.BackColor="#E6ECFF">
-
-
-
-
-
+
Rating
-
+
+ OnSelectedIndexChanged="toggleColumnVisibility">
@@ -62,4 +61,4 @@
-$Id: Sample2.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file
+$Id: Sample2.page 2955 2011-06-02 09:30:55Z ctrlaltca@gmail.com $
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.php
index 486d9d51..3831582d 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample2.php
@@ -67,7 +67,7 @@ class Sample2 extends TPage
public function onLoad($param)
{
parent::onLoad($param);
- if(!$this->IsPostBack)
+ if(!$this->IsPostBack && !$this->IsCallBack)
{
$this->DataGrid->DataSource=$this->Data;
$this->DataGrid->dataBind();
@@ -81,11 +81,6 @@ class Sample2 extends TPage
$this->DataGrid->DataSource=$this->Data;
$this->DataGrid->dataBind();
}
-
- public function redraw($sender,$param)
- {
- $this->DataGrid->render($param->NewWriter);
- }
}
?>
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.page
index 94aa95fe..4da3aa93 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.page
@@ -50,7 +50,7 @@
HeaderText="In-stock"
DataField="instock"
/>
-
-$Id: Sample3.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file
+$Id: Sample3.page 2955 2011-06-02 09:30:55Z ctrlaltca@gmail.com $
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.php
index bb18f36b..9768ca31 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample3.php
@@ -125,7 +125,7 @@ class Sample3 extends TPage
public function onLoad($param)
{
parent::onLoad($param);
- if(!$this->IsPostBack)
+ if(!$this->IsPostBack && !$this->IsCallBack)
{
$this->DataGrid->DataSource=$this->Data;
$this->DataGrid->dataBind();
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.page
index 76a2bb86..485c8621 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.page
@@ -52,4 +52,4 @@
-$Id: Sample4.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file
+$Id: Sample4.page 2955 2011-06-02 09:30:55Z ctrlaltca@gmail.com $
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.php
index 80a9c8bc..eb1a0e5b 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample4.php
@@ -11,7 +11,7 @@ class Sample4 extends Sample2
return $data ;
}
- public function sorTActiveDataGrid($sender,$param)
+ public function sortDataGrid($sender,$param)
{
$this->DataGrid->DataSource=$this->sortData($this->Data,$param->SortExpression);
$this->DataGrid->dataBind();
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.page
index a912c0d3..e2b99057 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.page
@@ -22,41 +22,4 @@
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-Next Page Text:
-
-Prev Page Text:
-
-
-
-
-
-
-Page Button Count:
-
-
-
-
-
-
-
-
-
-
-
-$Id: Sample5.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file
+$Id: Sample5.page 2955 2011-06-02 09:30:55Z ctrlaltca@gmail.com $
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.php
index 37347c7b..95bf9a0e 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample5.php
@@ -4,6 +4,17 @@ Prado::using('Application.pages.ActiveControls.Samples.TActiveDataGrid.Sample1')
class Sample5 extends Sample1
{
+
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if(!$this->IsPostback && ! $this->IsCallback)
+ {
+ $this->DataGrid->DataSource=$this->Data;
+ $this->DataGrid->dataBind();
+ }
+ }
+
public function changePage($sender,$param)
{
$this->DataGrid->CurrentPageIndex=$param->NewPageIndex;
@@ -63,11 +74,6 @@ class Sample5 extends Sample1
$this->DataGrid->DataSource=$this->Data;
$this->DataGrid->dataBind();
}
-
- public function redrawDG ($sender, $param)
- {
- $this->DataGrid->render($param->newWriter);
- }
}
?>
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.page
deleted file mode 100644
index dd3fcdf8..00000000
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.page
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-TActiveDataGrid Sample 6
-Custom Paging
-
-
-
-
-
-$Id: Sample6.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.php
deleted file mode 100644
index 7b217e24..00000000
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6.php
+++ /dev/null
@@ -1,56 +0,0 @@
-getData();
- $page=array();
- for($i=0;$i<$rows;++$i)
- {
- if($offset+$i<$this->getRowCount())
- $page[$i]=$data[$offset+$i];
- }
- return $page;
- }
-
- /**
- * Returns total number of data rows.
- * In real DB applications, this may be replaced by an SQL select
- * query with count().
- * @return integer total number of data rows
- */
- protected function getRowCount()
- {
- return 19;
- }
-
- public function onLoad($param)
- {
- if(!$this->IsPostBack)
- {
- $this->DataGrid->DataSource=$this->getDataRows(0,$this->DataGrid->PageSize);
- $this->DataGrid->dataBind();
- }
- }
-
- public function changePage($sender,$param)
- {
- $this->DataGrid->CurrentPageIndex=$param->NewPageIndex;
- $offset=$param->NewPageIndex*$this->DataGrid->PageSize;
- $this->DataGrid->DataSource=$this->getDataRows($offset,$this->DataGrid->PageSize);
- $this->DataGrid->dataBind();
- }
-}
-
-?>
\ No newline at end of file
--
cgit v1.2.3