title: How do I supply cellEditorParams after ag-Grid has been initialized?
body: <p>This is the classic example, which I am seeing in the docs and in online discussion, for supplying a 'dynamic' list of items to a cell pop-up list. But this isn't really dynamic. All of the values and relationships are known ahead of time and are hardcoded into the source.</p>
  
  <pre><code>cellEditor : 'agSelectCellEditor';
  cellEditorParams: function(params) {
      var selectedCountry = params.data.country;
      if (selectedCountry==='Ireland') {
          return {
              values: ['Dublin','Cork','Galway']
          };
      } else {
          return {
              values: ['New York','Los Angeles','Chicago','Houston']
          };
      }
  }
  </code></pre>
  
  <p>What if I am running an expanding business and I am adding new cities on a monthly basis to the list in which I maintain a corporate presence in different countries? I can't call a programmer every time I acquire a new customer. I need a way to supply this list dynamically, at run time, with a set of values which are fetched from the application database - not known ahead of time.</p>
  
  <p>Can this be done?</p>
  
  <p>I've documented my unsuccessful efforts to do this over here: </p>
  
  <p><a href="https://stackoverflow.com/questions/58968799/how-do-i-bind-ag-grid-dropdown-to-array-of-strings-whose-values-are-not-known-un">How do I Bind ag-Grid Dropdown to Array of Strings whose Values are not Known until Run Time?</a></p>
  
  <p>If you can help me with a reply, either here or over there in my other inquiry, that will be most appreciated!</p>