From 5e8932fb41534dc0d06e76dae7b74cf47071f6e0 Mon Sep 17 00:00:00 2001
From: tof <>
Date: Thu, 7 Feb 2008 10:32:04 +0000
Subject: Added TActivePager
---
.gitattributes | 3 +
HISTORY | 1 +
.../pages/ActiveControls/ActivePager.page | 41 +++++
.../protected/pages/ActiveControls/Home.page | 8 +-
.../ActiveControls/Samples/TActivePager/Home.page | 103 +++++++++++
.../ActiveControls/Samples/TActivePager/Home.php | 92 ++++++++++
.../pages/GettingStarted/NewFeatures.page | 5 +
framework/Web/UI/ActiveControls/TActivePager.php | 204 +++++++++++++++++++++
8 files changed, 456 insertions(+), 1 deletion(-)
create mode 100755 demos/quickstart/protected/pages/ActiveControls/ActivePager.page
create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page
create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.php
create mode 100644 framework/Web/UI/ActiveControls/TActivePager.php
diff --git a/.gitattributes b/.gitattributes
index c219cf49..cd8a69d4 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1225,6 +1225,7 @@ demos/quickstart/protected/pages/ActiveControls/ActiveButton.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveCheckBox.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveCustomValidator.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page -text
+demos/quickstart/protected/pages/ActiveControls/ActivePager.page -text
demos/quickstart/protected/pages/ActiveControls/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Introduction.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveButton/Home.page -text
@@ -1236,6 +1237,7 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/H
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/config.xml -text
demos/quickstart/protected/pages/ActiveControls/TActiveButtonClass.png -text
demos/quickstart/protected/pages/ActiveControls/TActiveButtonClass.vsd -text
@@ -2535,6 +2537,7 @@ framework/Web/UI/ActiveControls/TActiveCustomValidator.php -text
framework/Web/UI/ActiveControls/TActiveHiddenField.php -text
framework/Web/UI/ActiveControls/TActiveLabel.php -text
framework/Web/UI/ActiveControls/TActivePageAdapter.php -text
+framework/Web/UI/ActiveControls/TActivePager.php -text
framework/Web/UI/ActiveControls/TActivePanel.php -text
framework/Web/UI/ActiveControls/TActiveRatingList.php -text
framework/Web/UI/ActiveControls/TActiveTextBox.php -text
diff --git a/HISTORY b/HISTORY
index 6798b7c7..ccaca311 100644
--- a/HISTORY
+++ b/HISTORY
@@ -26,6 +26,7 @@ ENH: Added TAuthManager.switchUser() (Qiang)
NEW: Added TDbLogRoute (Qiang)
NEW: Added TDataRenderer and TItemDataRenderer (Qiang)
NEW: Ticket#544 - Added TXCache (Wei)
+NEW: Ticket#729 - Added TActivePager (Christophe)
Version 3.1.1 October 1, 2007
=============================
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActivePager.page b/demos/quickstart/protected/pages/ActiveControls/ActivePager.page
new file mode 100755
index 00000000..4589f381
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActivePager.page
@@ -0,0 +1,41 @@
+
+TActivePager creates a pager that provides UI for end-users to interactively specify which page of data to be rendered in a TDataBoundControl-derived control, such as TDataList, TRepeater, TCheckBoxList, etc.
+The target data-bound control is specified by the ControlToPaginate property, which must be the ID path of the target control reaching from the pager's naming container. The target-databound must be enclosed inside a TActivePanel in order
+to be re-rendered during callback
+
+Note, the target data-bound control must have its AllowPaging set to true. Otherwise the pager will be invisible. Also, in case when there is only one page of data available, the pager will also be invisible.
+
+TActivePager can display one of the following three types of user interface, specified via its Mode property:
+
+These user interfaces may be further customized by configuring the following properties
+
+TActivePager raises an OnPageIndexChanged event when an end-user interacts with it and specifies a new page (e.g. by clicking on a next page button that would lead to the next page.) Developers may write handlers to respond to this event and obtain the desired new page index from the event parameter's property NewPageIndex. Using this new page index, one can feed a new page of data to the associated data-bound control.
+Additionnaly, TActivePager raises OnCallback after the OnPageIndexChanged.
+TActivePager
+
+
+
+
+
+
+The following sample displays three different pagers associated with a single TDataList control. The datalist control is enabled with custom paging, which allows it to read only one page of data each time. This is typical in DB-driven applications. +
+ +ID | Name | Quantity | Price | +
---|---|---|---|
$ |
+
This page summarizes the main new features that are introduced in each PRADO release.
+ +