Example #1
0
 /**
  * Loads items from viewstate.
  * This method is invoked right after control state is loaded.
  */
 public function loadState()
 {
     parent::loadState();
     $this->_stateLoaded = true;
     if (!$this->getIsDataBound()) {
         $this->_items = $this->createListItemCollection();
         $this->_items->loadState($this->getViewState('Items', null));
     }
     $this->clearViewState('Items');
 }
Example #2
0
 /**
  * Loads item count information from viewstate.
  * This method is invoked right after control state is loaded.
  */
 public function loadState()
 {
     parent::loadState();
     if (!$this->getIsDataBound()) {
         $this->restoreItemsFromViewState();
     }
     $this->clearViewState('ItemCount');
 }