Prado\Web\UI\WebControls\TDataList::saveState PHP Method

saveState() public method

This method is invoked right before control state is to be saved.
public saveState ( )
    public function saveState()
    {
        parent::saveState();
        if ($this->_items) {
            $this->setViewState('ItemCount', $this->_items->getCount(), 0);
        } else {
            $this->clearViewState('ItemCount');
        }
    }
TDataList