Controller/DataGridController.php
public function getDataGrid ($name)
    {
        if (! $this->getRequest()->isXmlHttpRequest()) {
            throw new \RuntimeException('Request must be XmlHttpRequest');
        }
        
        $provider = $this->container->get('neutron_data_grid.provider');
        
        if (!$provider->has($name)) {
            throw new \InvalidArgumentException(sprintf('The datagrid %s is not defined', $name));
        }
        
        return $provider->get($name);
    }
public function getDataGrid ($name)
    {
        if (! $this->getRequest()->isXmlHttpRequest()) {
            throw new \RuntimeException('Request must be XmlHttpRequest');
        }
        
        $provider = $this->container->get('neutron_data_grid.provider');
        
        if (!$provider->has($name)) {
            throw new \InvalidArgumentException(sprintf('The datagrid %s is not defined', $name));
        }
        
        return $provider->get($name);
    }
public function getDataGrid ( $ name ) { if ( ! $ this -> getRequest ( ) -> isXmlHttpRequest ( ) ) { throw new \ RuntimeException ( 'Request must be XmlHttpRequest' ) ; } $ provider = $ this -> container -> get ( 'neutron_data_grid.provider' ) ; if ( ! $ provider -> has ( $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The datagrid %s is not defined' , $ name ) ) ; } return $ provider -> get ( $ name ) ; }
This method retrieves datagrid by name

@param string $name
@return \Neutron\DataGridBundle\DataGrid\DataGridInterface
@throws \RuntimeException
@throws \InvalidArgumentException
This method retrieves datagrid by name