summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
/**