Back to the index of articles and examples

Dynamic dropdownOptions

It the values for a dropdownCellEditor are not known at the time the DataTable is created, they can be easily set afterwards. In this example, both the DataTable and the options for the dropdown are already present in the source as plain arrays but it really doesn't matter how or when the option values arrive, as long as they are there by the time the cell editor is shown.

Click on any cell in the right-most column to show the cell editor.