/**
  * @inheritdoc
  */
 public function init()
 {
     if (empty($this->storageId)) {
         $this->storageId = $this->id . '-settings';
     }
     $this->grid->pluginSections['{settings}'] = $this;
     $this->initFromStorage();
     parent::init();
 }
 public function init()
 {
     if (empty($this->storageId)) {
         $this->storageId = $this->id . '-rows-per-page';
     }
     $this->grid->pluginSections['{rows_per_page}'] = $this;
     foreach ($this->numberRows as $key => $number) {
         $this->numberRows[$number] = $number;
         unset($this->numberRows[$key]);
     }
     $this->grid->on(GridView::EVENT_AFTER_INIT, [$this, 'initRowsPerPage']);
     parent::init();
 }
 public function run()
 {
     $this->registerClientScript();
     parent::run();
 }