public function handleGetItemDetail($id)
	{
		$this->getTemplate()->add('toggle_detail', $id);
		$this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id];

		if ($this->getPresenter()->isAjax()) {
			$this->getPresenter()->payload->_datagrid_toggle_detail = $id;
			$this->getPresenter()->payload->_datagrid_name = $this->getName();
			$this->redrawControl('items');

			/**
			 * Only for nette 2.4
			 */
			if (method_exists($this->getTemplate()->getLatte(), 'addProvider')) {
				$this->redrawControl('gridSnippets');
			}

			$this->onRedraw();
		} else {
			$this->getPresenter()->redirect('this');
		}
	}
public function handleGetItemDetail($id)
	{
		$this->getTemplate()->add('toggle_detail', $id);
		$this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id];

		if ($this->getPresenter()->isAjax()) {
			$this->getPresenter()->payload->_datagrid_toggle_detail = $id;
			$this->getPresenter()->payload->_datagrid_name = $this->getName();
			$this->redrawControl('items');

			/**
			 * Only for nette 2.4
			 */
			if (method_exists($this->getTemplate()->getLatte(), 'addProvider')) {
				$this->redrawControl('gridSnippets');
			}

			$this->onRedraw();
		} else {
			$this->getPresenter()->redirect('this');
		}
	}
public function handleGetItemDetail ( $ id ) { $ this -> getTemplate ( ) -> add ( 'toggle_detail' , $ id ) ; $ this -> redraw_item = [ $ this -> items_detail -> getPrimaryWhereColumn ( ) => $ id ] ; if ( $ this -> getPresenter ( ) -> isAjax ( ) ) { $ this -> getPresenter ( ) -> payload -> _datagrid_toggle_detail = $ id ; $ this -> getPresenter ( ) -> payload -> _datagrid_name = $ this -> getName ( ) ; $ this -> redrawControl ( 'items' ) ; /**
			 * Only for nette 2.4
			 */ if ( method_exists ( $ this -> getTemplate ( ) -> getLatte ( ) , 'addProvider' ) ) { $ this -> redrawControl ( 'gridSnippets' ) ; } $ this -> onRedraw ( ) ; } else { $ this -> getPresenter ( ) -> redirect ( 'this' ) ; } }
Handler for getting item detail
@param  mixed $id
@return void
Handler for getting item detail