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:
https://snippet.webix.com/iwnps8rk

Comments

  • 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: https://snippet.webix.com/rrjafop3. 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: https://snippet.webix.com/ubok67t6.

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