Event Handling in custom view

I am facing problem with event handling in custom toolbar view which I developed, it has three combo boxes each having its own options. Here I wrote the event handling functionality like until I select any option under “Cat:” all the combo boxes are disabled, if any option is selected then “Dog:” will be enabled and if any option is selected in “Dog:” then “Elephant:” should be enabled. This is working fine for top most custom tool bar but this is not happening for bottom one…!

Please explain me what could be the reason for this…!
Please suggest me alternative solution if there is any…?

please see the code at
http://webix.com/snippet/20ff666e

Hi,

you should access combo boxes within toolbar as self.elements[name] since $$(id) awaits unique view ID as parameter. Check the snippet, please: http://webix.com/snippet/bf70b43e

In addition, it will be better to call onSelectionComplete event within the protoUI and catch it for each instance of your custom toolbar rather than defining a same-name method for each instance.