Events in toolbar

Hi,

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.setSkin(“dhx_terrace”);
MAINtoolbarTopAvd.setIconsPath(“v21js/dhtmlx_icons/”);
MAINtoolbarTopAvd.attachEvent(“onStateChange”, this.MAINtoolbarAvdEvent);
MAINtoolbarTopAvd.attachEvent(“onClick”, this.KARTAtoolbarAvdEvent);

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

I have traced this to function obj.callEvent in dhtmlxcommon.js.
In the line: r = this.dhxevs.data[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?
/BJDA

Allrigth!!

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

/BJDA

Hi

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:
docs.dhtmlx.com/tutorials__auxil … pport.html

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

If you’re using PRO Edition please send your demo to support@dhtmlx.com