Dropdown params from external HTTP call
The example below displays the usage of a HTTP Request to get data from a source, then using that to set the Cell Editor dropdown values.
To achieve this behaviour we created a function which targets the name column and updates its cell editor values:
function setNameCellEditorValues(values) {
var colDefs = gridOptions.api.getColumnDefs()
colDefs[0].cellEditorParams.values = values;
gridOptions.api.setColumnDefs(colDefs);
}
For more details implementing this behaviour please see the following example:
https://plnkr.co/edit/PhEFG1EZP6TsUQyT
This article shows how to implement synchronous population of values in the rich select editor. Asynchronous value population is requested in:
Comments
0 comments
Please sign in to leave a comment.