/**
  * @inheritdoc
  */
 public function registerClientScript()
 {
     if ($this->customRender !== null && !empty($this->customRender)) {
         foreach ($this->customRender as $template => $templateValue) {
             $templateValue = preg_replace($this->patterns, $this->replacement, $templateValue);
             $this->clientOptions['render'][$template] = new JsExpression("function(item, escape){return '{$templateValue}';}");
         }
     }
     $this->clientOptions['options'] = new JsExpression($this->getAllCountries());
     parent::registerClientScript();
 }