Esempio n. 1
0
 /**
  * Registers the list control to load post data on postback.
  * This method overrides the parent implementation.
  * @param mixed event parameter
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     if ($this->getEnabled(true)) {
         $this->getPage()->registerRequiresPostData($this);
     }
 }
Esempio n. 2
0
 /**
  * Registers for post data on postback.
  * This method overrides the parent implementation.
  * @param mixed event parameter
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     $this->_repeatedControl->setAutoPostBack($this->getAutoPostBack());
     $this->_repeatedControl->setCausesValidation($this->getCausesValidation());
     $this->_repeatedControl->setValidationGroup($this->getValidationGroup());
     $page = $this->getPage();
     $n = $this->getItemCount();
     for ($i = 0; $i < $n; ++$i) {
         $this->_repeatedControl->setID("c{$i}");
         $page->registerRequiresPostData($this->_repeatedControl);
     }
 }