Events in toolbar


I have encountered a funny problem with toolbars.
In one toolbar the onclick-event does seem to not register correctly. Other toolbars, seemingly similar, have no problems.

MAINtoolbarTopAvd = new dhtmlXToolbarObject(“divToolTopAvd”);
MAINtoolbarTopAvd.attachEvent(“onStateChange”, this.MAINtoolbarAvdEvent);
MAINtoolbarTopAvd.attachEvent(“onClick”, this.KARTAtoolbarAvdEvent);

A click on a Button or ButtonSelect gives:
TypeError:[name][a] is undefined.

I have traced this to function obj.callEvent in dhtmlxcommon.js.
In the line: r =[name][a].apply(this, params) && r;
name=‘onclick’, a = ‘6’ and params = ‘rapp-DYN’ ( which is the itemid ).

dhtmlx 4.4.

What could possibly cause this?


Got it myself!
Probably a timing problem with Windows 10.



Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo: … pport.html

If you don’t want to share your demo here for any reasons - you can send it to, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to