Results 1 to 3 of 3

Thread: Datepickerfield

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    4

    Default Answered: Datepickerfield

    Hello my friends !

    I am facing a problem with blur event in datepickerfield.
    I need to calculate the date and see if the person have 18- years when my date lost focus. But blur event never is fired.

    Is there anything that I have to do to make it works ?

    Thanks.

    Felipe

  2. Hi lipepe,
    Try the code give below. you can do the same you want to do in change event of datepickerfield.

    Code:
    Ext.create('Ext.form.Panel', {
        fullscreen: true,
        items: [
            {
                xtype: 'fieldset',
                items: [
                    {
                        xtype: 'datepickerfield',
                        label: 'Birthday',
                        name: 'birthday',
                        listeners:{
                        	change:function(){
                            	alert('event fired.');
                            }
                        }
                    }
                ]
            }
        ]
    });

  3. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default

    Hi lipepe,
    Try the code give below. you can do the same you want to do in change event of datepickerfield.

    Code:
    Ext.create('Ext.form.Panel', {
        fullscreen: true,
        items: [
            {
                xtype: 'fieldset',
                items: [
                    {
                        xtype: 'datepickerfield',
                        label: 'Birthday',
                        name: 'birthday',
                        listeners:{
                        	change:function(){
                            	alert('event fired.');
                            }
                        }
                    }
                ]
            }
        ]
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    4

    Default Thanks

    Thanks my friend. I'll try this code !

Tags for this Thread

Posting Permissions

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