onChange for Toolbar input

I have an input in Toolbar, and an Calender bound to it. I would like to be notified when the input is changed but i dont find an way to do that.
Is there an way ?

You may try to use the onChange event of the calendar object:
docs.dhtmlx.com/api__dhtmlxcale … event.html

Hi, thanks for the fast answer.
Ive tried that but it gets never called.
Thats what i do:

var eDate = tbToolbar.getInput("datea"); var cDate = new dhtmlXCalendarObject([eDate]); cDate.setDateFormat("%d.%m.%Y"); var aDate = new Date(); tbToolbar.setValue("datea",formatDate(aDate,'dd.MM.YYYY')); cDate.attachEvent("onChange", function(date, state){ RefreshTimes(); });

Unfortunately the problem cannot be reconstructed locally.
Please, refer to the following snippet. It works well:
snippet.dhtmlx.com/808c5cb14
If the problem still occurs for you pleas,e provide with a complete demo, where the problem can be reconstructed locally.

Hi, thanks for the Demo but it works not at all :slight_smile:
The onChange Event is only fired on Entering the Control not when the Contens are changed.
I would expect that when the Date is changed the Event is fired, but that isnt happen even in your Demo.

Do i understand onChange wrong, or can you confirm the Problem ?

The issue is confirmed. We’re working on it.

great, thanks.

The issue is fixed. now the calendar onChange event occurs successfully in case of attaching to the toolbar input.
Please, open ticket at support.dhtmlx.com to request the latest version with the fix.