title: How to map agSelectCellEditor values in agGrid to cell value
body: <p>When I am trying to edit cell then dropdown gets opened because I am using agSelectCellEditor in agGrid inside Angular 8 application. But I am not able to map "Yes" to selected value in dropdown editor.</p>
  
  <p>I want to say that I have one row cell value as:-</p>
  
  <p><a href="https://i.stack.imgur.com/e1uTG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e1uTG.png" alt="enter image description here"></a></p>
  
  <p>When I edit it is selecting "No" as default. I want to set selected value in Dropdown mapped to cell value. Currently it is coming like this:-</p>
  
  <p><a href="https://i.stack.imgur.com/5n6cp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5n6cp.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong here?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ag-grid-angular class="ag-theme-balham" [gridOptions]="categoryGridOptions"
              [rowData]="categoryRowData" [columnDefs]="categoryColDef"  
              (gridReady)="onGridReady($event)"&gt;
          &lt;/ag-grid-angular&gt;
  </code></pre>
  
  <p><strong>TS File</strong></p>
  
  <pre><code>export class CategoryComponent{
    categoryRowData: any[]; 
    objCategoryMappings = {
          0: "No",
          1: "Yes",        
        };
  
    categoryColDef = [
         {
              headerName: 'Category Name', field: 'CategoryName',                        
              cellEditor: 'agLargeTextCellEditor',
              cellEditorParams: {
                  maxLength: '50',
                  cols: '20',
                  rows: '1'
              }
          },
          {
              headerName: 'Is Subcategory', field: 'IsSubcategory',              
              cellEditor: 'agSelectCellEditor',
              cellEditorParams: {
                  values: this.extractValues(this.objCategoryMappings),                                
              },                                          
              cellRenderer: (params) =&gt; {               
                  return this.mapCategory(params);
              }, 
              refData: this.objCategoryMappings,            
          }];
  
      extractValues(mappings) {
          return Object.keys(mappings);
      }
  
      mapCategory(objRowData : any) : string
      {
          if (objRowData.data.IsSubcategory == 1)
              return "Yes";
          else if (objRowData.data.IsSubcategory == 0)
              return "No";        
      }
  }
  </code></pre>