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) {
gridOptions.columnDefs.forEach(function(col) {
if(col.field ==='name'){
col.cellEditorParams.values = values;
}
});
}
For more details implementing this behaviour please see the following example:
https://plnkr.co/edit/b2bCQWB17vkHioK3
Comments
0 comments
Please sign in to leave a comment.