How to set combo or select options?

I am trying to set a select or combo based on another select or combo value.

How do you set the options outside of the initial config?

https://snippet.webix.com/6kgv90xr

I want to add a onChange event handler but only for when there is a selection not when the options are being added.

I can use webix.ajax() to send the request and construct the options and then set them and then add the onChange handler so the first change doesn’t trigger the handler. But I don’t know how to set the options for the select or combo.

Hello,

Please check the sample: Code Snippet

I’m trying to set it in a callback after a webix.ajax() request.

I’m getting an error that this.$$ is not a function.

I also tried webix.$$ and a global id with $$("foo").

https://snippet.webix.com/8fr0s7dr

Okay my problem was that I had a select and not a combo.