title: Yii 2 Export (Kartik) Menu - How can I make Dropdownlist (Exportcolumns) scrollable?
body: <p>I'm using Yii2 basic and the extension <code>kartik\export\ExportMenu</code>.</p>
  
  <p>How can I  make <code>Dropdownlist</code> (Exportcolumns) scrollable? I have so many columns to choose, so it doesn't show me all of them when I'm working with a screen resolution of 100%. Some of them are cut off.</p>
  
  <p>Dropdown columns:</p>
  
  <pre><code>&lt;?php
      $gridColumns = [
          ['class' =&gt; 'yii\grid\SerialColumn'],
  
          ['attribute'=&gt;'Personen ID','value' =&gt; 'PID'],
          ['attribute'=&gt;'Titel','value' =&gt; 'PTitel'],
          ['attribute'=&gt;'Anrede','value' =&gt; 'PAnrede'],
          ['attribute'=&gt;'Vorname','value' =&gt; 'PVorname'],
          ['attribute'=&gt;'Nachname','value' =&gt; 'PNachname'],
          ['attribute'=&gt;'Private Telefonnummer','value' =&gt; 'PTelefon'],
          ['attribute'=&gt;'Private Mobiltelefonnummer','value' =&gt; 'PMobil'],
          ['attribute'=&gt;'Privatmail','value' =&gt; 'PEmail'],
          ['attribute'=&gt;'Private Webadresse','value' =&gt; 'PWebadresse'],
  
          ['attribute'=&gt;'Firmen ID','value' =&gt; 'FID'],
          ['attribute'=&gt;'Firmenname','value' =&gt; 'FName'],
          ['attribute'=&gt;'Firmenbezeichnung','value' =&gt; 'FNamenszusatz'],
          ['attribute'=&gt;'Ist Zentrale','value' =&gt; 'FIstZentrale'],
  
          ['attribute'=&gt;'Beziehungs ID','value' =&gt; 'RID'],
          ['attribute'=&gt;'Kommentar','value' =&gt; 'RKommentar'],
          ['attribute'=&gt;'Funktion','value' =&gt; 'FUName'],
          ['attribute'=&gt;'Zweitfunktion','value' =&gt; 'FUName'],
          ['attribute'=&gt;'Branche','value' =&gt; 'BRName'],
          ['attribute'=&gt;'Kategorie','value' =&gt; 'KName'],
  
          ['attribute'=&gt;'Erstellt am','value' =&gt; 'RErstelltAm'],
          ['attribute'=&gt;'Erstellt von','value' =&gt; 'RErstelltVon'],
          ['attribute'=&gt;'Bearbeitet am','value' =&gt; 'RLetzteBearbeitung'],
          ['attribute'=&gt;'Bearbeitet von','value' =&gt; 'RLetzterBearbeiter'],
  
          ['attribute'=&gt;'Adress ID','value' =&gt; 'AID'],
          ['attribute'=&gt;'Straße','value' =&gt; 'AStrasse'],
          ['attribute'=&gt;'Hausnummer','value' =&gt; 'AHausnummer'],
          ['attribute'=&gt;'Adresszusatz','value' =&gt; 'AAdresszusatz'],
          ['attribute'=&gt;'PLZ','value' =&gt; 'APostleitzahl'],
          ['attribute'=&gt;'Ort','value' =&gt; 'AOrt'],
          ['attribute'=&gt;'Land','value' =&gt; 'ALand'],
          ['attribute'=&gt;'Bundesland','value' =&gt; 'ABundesland'],
  
          [ 'attribute'=&gt;'Firmentelefon','value' =&gt; 'AFirmentelefon'],
          [ 'attribute'=&gt;'Firmen Email','value' =&gt; 'AFirmenEmail'],
          [ 'attribute'=&gt;'Webadresse','value' =&gt; 'AWebadresse'],
  
          [ 'attribute'=&gt;'Adresskennung','value' =&gt; 'AKennung'],
      ];
  </code></pre>
  
  <p>Export widget in view:
  The class attributes in <code>columnSelectorOptions</code> and <code>columnSelectorMenuOptions</code> don't make any difference.</p>
  
  <p>
  
  <pre><code>echo ExportMenu::widget([
  
      'columnBatchToggleSettings'=&gt;['label'=&gt;'Alle Wählen'],
  
      'dropdownOptions' =&gt; 
      [
         'label' =&gt; 'Exportieren',
         'class' =&gt; 'btn btn-wkm'
      ],
  
      'columnSelectorOptions'=&gt;
      [
         'label' =&gt; 'Exportspalten',
         'class' =&gt; 'btn btn-default dropdown-toggle',
         'scrollable'=&gt; true,
      ],
  
      'columnSelectorMenuOptions' =&gt; 
      [
          'class' =&gt; 'dropdown-menu scrollable-menu',
          'role'=&gt; 'menu'
      ],
  
     'dataProvider' =&gt; $dataProviderClone,
     'columns' =&gt; $gridColumns,
  
     'exportConfig' =&gt;
      [
         ExportMenu::FORMAT_TEXT =&gt; false,
         ExportMenu::FORMAT_HTML =&gt; false,
         ExportMenu::FORMAT_EXCEL =&gt; false,
         ExportMenu::FORMAT_PDF =&gt; false,
  
         ExportMenu::FORMAT_EXCEL_X =&gt; 
         [
           'label' =&gt; 'EXCEL',
         ]
      ],
  
      'container'=&gt;['class'=&gt;'btn-group pull-left', 'style'=&gt; 'margin: 5px']
  ]);
  </code></pre>
  
  <p>?>
  </p>