summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-11-27 03:17:58 +0000
committerxue <>2006-11-27 03:17:58 +0000
commit51fe975484bb4d1e8e63f4438c1c8e7f1b41c5df (patch)
tree9d4c4dad48a8490387c799118e9053203e2a53db
parente5477d462399aaf73836a069bc19775d7b8b1918 (diff)
TDataGrid now does not generate default table styles.
-rw-r--r--HISTORY1
-rw-r--r--UPGRADE2
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php6
3 files changed, 4 insertions, 5 deletions
diff --git a/HISTORY b/HISTORY
index 7c7b216c..bcff6c72 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9,6 +9,7 @@ ENH: Ticket#446 - Added TMetaTagCollection.getMetaTagByID method (Qiang)
CHG: Ticket#437 - __autoload is replaced by spl_autoload_register (Qiang)
CHG: Ticket#454 - Redundant PHP Version Check (Qiang)
CHG: Ticket#460 - Validators will not perform validation if parents are disabled (Qiang)
+CHG: TDataGrid now does not set default table styles (Qiang)
CHG: TRepeater does not render <span> anymore for empty item template (Qiang)
CHG: THttpRequest.constructUrl() now encodes ampersand by default (Qiang)
diff --git a/UPGRADE b/UPGRADE
index 44539b1f..b6fe5e81 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -18,6 +18,8 @@ Upgrading from v3.0.5
- TRepeater does not render <span> anymore for empty item template.
- constructUrl() now encodes ampersand by default. This should have minimal
impact on any existing PRADO applications, though.
+- TDataGrid does not generate default table styles. This may affect
+ the appearance of existing PRADO applications that use TDataGrid.
Upgrading from v3.0.4
---------------------
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php
index ccbd8be3..90042b12 100644
--- a/framework/Web/UI/WebControls/TDataGrid.php
+++ b/framework/Web/UI/WebControls/TDataGrid.php
@@ -276,11 +276,7 @@ class TDataGrid extends TBaseDataList implements INamingContainer
*/
protected function createStyle()
{
- $style=new TTableStyle;
- $style->setGridLines('Both');
- $style->setCellSpacing(0);
- $style->setBorderCollapse(true);
- return $style;
+ return new TTableStyle;
}
/**