code: public function run()
      {
          $view = $this->getView();
          GridViewAsset::register($view);
          $id = $this->options['id'];
          $options = Json::htmlEncode(array_merge($this->getClientOptions(), ['filterOnFocusOut' => $this->filterOnFocusOut]));
          $view->registerJs("jQuery('#$id').yiiGridView($options);");
          parent::run();
      }
docs: Runs the widget.