public function setTemplateFile($file)
    {
        $this->onRender[] = function() use ($file) {
            $this->getTemplate()->add('gridoTemplate', $this->getTemplate()->getFile());
            $this->getTemplate()->setFile($file);
        };

        return $this;
    }
public function setTemplateFile($file)
    {
        $this->onRender[] = function() use ($file) {
            $this->getTemplate()->add('gridoTemplate', $this->getTemplate()->getFile());
            $this->getTemplate()->setFile($file);
        };

        return $this;
    }
public function setTemplateFile ( $ file ) { $ this -> onRender [ ] = function ( ) use ( $ file ) { $ this -> getTemplate ( ) -> add ( 'gridoTemplate' , $ this -> getTemplate ( ) -> getFile ( ) ) ; $ this -> getTemplate ( ) -> setFile ( $ file ) ; } ; return $ this ; }
Sets file name of custom template.
@param string $file
@return Grid
Sets file name of custom template .