From 45dc5224f9b2eb5f9c24d4eecda2d8a1f6ac5d8c Mon Sep 17 00:00:00 2001
From: xue <>
Date: Tue, 14 Feb 2006 14:39:23 +0000
Subject: Added changing page size to the datagrid demo and two more FT.
---
.../protected/pages/Controls/Samples/TDataGrid/Sample5.page | 5 +++++
.../protected/pages/Controls/Samples/TDataGrid/Sample5.php | 8 ++++++++
2 files changed, 13 insertions(+)
(limited to 'demos/quickstart/protected/pages/Controls')
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page
index 8fc393e7..e4f2f052 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page
@@ -50,6 +50,11 @@ Page Button Count:
+
+
+
+
+
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php
index 30b78765..660c40af 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php
@@ -60,6 +60,14 @@ class Sample5 extends Sample1
$this->DataGrid->DataSource=$this->Data;
$this->DataGrid->dataBind();
}
+
+ public function changePageSize($sender,$param)
+ {
+ $this->DataGrid->PageSize=TPropertyValue::ensureInteger($this->PageSize->Text);
+ $this->DataGrid->CurrentPageIndex=0;
+ $this->DataGrid->DataSource=$this->Data;
+ $this->DataGrid->dataBind();
+ }
}
?>
\ No newline at end of file
--
cgit v1.2.3