Results 1 to 3 of 3

Thread: datefield listener ?

  1. #1

    Default datefield listener ?

    Hi,

    I can't seem to get the datefield listeners to work, any help I have found talks about using menuListeners but they also don't work. I am currently using 3.1.1.

    Here is my code, all I have in the listener is an alert, but I can't get it to work.

    Code:
     
    var dateRangeContainer = new Ext.Container({
            fieldLabel: 'Date Range',
            items: [{
                xtype: 'datefield',
                columnWidth: 0.35,
                editable: false,
                emptyText: 'After date...',
                enableKeyEvents: true,
                id: 'afterdate',
                itemId: 'afterDate',
                listener: {
                  select: function(  ){
                        alert('test');
                    }
                }
            },
            {
                xtype: 'datefield',
                columnWidth: 0.35,
                editable: false,
                emptyText: 'Before date...',
                enableKeyEvents: true,
                itemId: 'beforeDate',
                id: 'beforedate'
            }],
            layout: 'column',
            anchor: '80%'
        });
    
        return dateRangeContainer;
    }

  2. #2

  3. #3

    Default

    Quote Originally Posted by Eugen_ View Post
    Hi nathanblogs,

    Code:
    listeners
    Thanks, I think its time for a break .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •