Yishnu Pramanik
Yishnu Pramanik

Reputation: 31

How to add Dropdown in Ag-Grid Angular?

I am using ag-grid-community. I have tried cell render technique i.e Angular 6 ag-grid cell renderer click function in which I add Dropdown . And Not worked

Upvotes: 1

Views: 3581

Answers (1)

Mayur Parmar
Mayur Parmar

Reputation: 264

Here Is Example Of DropDown...

 {
            headerName: 'Dropdown', field: 'dropdown',
            cellEditor: 'agRichSelectCellEditor',
            width: 140,          
            editable: true,

            cellEditorParams: (params) => {
            values: Get All Dropdown List
            },
            
            valueSetter: (params) => {
              if (params.newValue) {
               params.data.instrumentType = params.newValue;
                return true;
              }
              return false;
            }
 },

Upvotes: 2

Related Questions