From e7bb0551bbe9c2d14e434e606b31225d9261a9c5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 25 Jul 2007 15:43:06 +0000 Subject: Added quickstart tutorial for TTabPanel. --- framework/Web/UI/WebControls/TTabPanel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php index 42aac98b..411c0c0f 100644 --- a/framework/Web/UI/WebControls/TTabPanel.php +++ b/framework/Web/UI/WebControls/TTabPanel.php @@ -274,7 +274,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler */ public function loadPostData($key,$values) { - if(($index=$values[$key.':1'])!==null) + if(($index=$values[$this->getClientID().'_1'])!==null) { $index=(int)$index; $currentIndex=$this->getActiveViewIndex(); @@ -359,7 +359,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler $cs->registerPradoScript('prado'); $code="new $className($options);"; $cs->registerEndScript("prado:$id", $code); - $cs->registerHiddenField($id.':1',$this->getActiveViewIndex()); + $cs->registerHiddenField($id.'_1',$this->getActiveViewIndex()); $page->registerRequiresPostData($this); } @@ -378,7 +378,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler */ protected function getClientOptions() { - $options['ID']=$this->getUniqueID(); + $options['ID']=$this->getClientID(); $options['ActiveCssClass']=$this->getActiveTabCssClass(); $options['NormalCssClass']=$this->getTabCssClass(); $viewIDs=array(); -- cgit v1.2.3