tags:

views:

43

answers:

1

I have a Ext.form.DateField:

new Ext.form.DateField({
            id: 'date_from',
            format: 'd/m/Y',
            editable: false,
            listeners: {
            change: function (t,n,o) {
                console.log('dsd');
            }

        }
 })

However unfortunately the change event does not seem to be executed.

I have also tried:

new Ext.form.DateField({
            id: 'date_from',
            format: 'd/m/Y',
            editable: false,
            change: function (t,n,o) {
                console.log('dsd');
            }
})

However also to no avail. Any advice appreciated.

Thanks

+2  A: 

The change event only fires on blur. If you are trying to handle any date selection use the select event instead.

bmoeskau