Пример #1
0
 /**
  * Before rendering html, but after trying to load cache
  *
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->setId($this->getId() . '_' . $this->getIndex());
     $this->getChildBlock('reset_filter_button')->setData('onclick', $this->getJsObjectName() . '.resetFilter()');
     $this->getChildBlock('search_button')->setData('onclick', $this->getJsObjectName() . '.doFilter()');
     return parent::_beforeToHtml();
 }
Пример #2
0
 /**
  * Initialize grid before rendering
  *
  * @return $this
  */
 protected function _beforeToHtml()
 {
     $this->setId($this->getId() . '_' . $this->getIndex());
     return parent::_beforeToHtml();
 }