Change datatable combo options

Is it possible to change editable datatable's combo options based on event or timer or any kind of trigger?

Here is my snippet to try with:


  • Hey @tengkie, it is not recommended to dynamically change the editors, however, if you have to, the best way would be probably to use an onAfterEditStart event, through which you can get the editor object and modify its config: Please note that you have to have matching ids and values for your options, since the inner logic of the combo control relies on that (or you can just provide an array of strings, the ids will get assigned automatically in that case).

    Alternatively, you can also access the column config outside the event and alter the combo options:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion