summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TListControl.php
diff options
context:
space:
mode:
authorxue <>2006-06-10 12:39:49 +0000
committerxue <>2006-06-10 12:39:49 +0000
commit2da825c6f1dd3726bcc866082f6d28dcc29a0c5a (patch)
tree485e1d96eee06a5337d3c589a3fc8b65acc6ab49 /framework/Web/UI/WebControls/TListControl.php
parentbd87a02b43b815f99ab9400709d8269ac56c32f3 (diff)
Fixed #182.
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r--framework/Web/UI/WebControls/TListControl.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php
index 2953f380..f85cc741 100644
--- a/framework/Web/UI/WebControls/TListControl.php
+++ b/framework/Web/UI/WebControls/TListControl.php
@@ -115,7 +115,7 @@ abstract class TListControl extends TDataBoundControl
if($this->getEnabled(true) && $this->getAutoPostBack() && $page->getClientSupportsJavaScript())
{
$writer->addAttribute('id',$this->getClientID());
- $this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.'.get_class($this),$this->getPostBackOptions());
+ $this->getPage()->getClientScript()->registerPostBackControl($this->getClientClassName(),$this->getPostBackOptions());
}
if(!$this->getEnabled(true) && $this->getEnabled())
$writer->addAttribute('disabled','disabled');
@@ -123,6 +123,13 @@ abstract class TListControl extends TDataBoundControl
}
/**
+ * Gets the name of the javascript class responsible for performing postback for this control.
+ * This method overrides the parent implementation.
+ * @return string the javascript class name
+ */
+ abstract protected function getClientClassName();
+
+ /**
* @return array postback options for JS postback code
*/
protected function getPostBackOptions()