summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php
index e3bc3fbe..55b12ebc 100644
--- a/framework/Web/UI/WebControls/TDataGrid.php
+++ b/framework/Web/UI/WebControls/TDataGrid.php
@@ -510,19 +510,19 @@ class TDataGrid extends TBaseDataList implements INamingContainer
}
/**
- * @param boolean whether paging is enabled
+ * @return boolean whether sorting is enabled. Defaults to false.
*/
- public function setAllowPaging($value)
+ public function getAllowSorting()
{
- $this->setViewState('AllowPaging',TPropertyValue::ensureBoolean($value),false);
+ return $this->getViewState('AllowSorting',false);
}
/**
- * @return boolean whether sorting is enabled. Defaults to false.
+ * @param boolean whether paging is enabled
*/
- public function getAllowSorting()
+ public function setAllowPaging($value)
{
- return $this->getViewState('AllowSorting',false);
+ $this->setViewState('AllowPaging',TPropertyValue::ensureBoolean($value),false);
}
/**