From 51fe975484bb4d1e8e63f4438c1c8e7f1b41c5df Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 27 Nov 2006 03:17:58 +0000 Subject: TDataGrid now does not generate default table styles. --- HISTORY | 1 + UPGRADE | 2 ++ framework/Web/UI/WebControls/TDataGrid.php | 6 +----- 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 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 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; } /** -- cgit v1.2.3