Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    4
    Vote Rating
    0
    lipepe is on a distinguished road

      0  

    Default Answered: Datepickerfield

    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 - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      1  

    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
    Vote Rating
    0
    lipepe is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thanks my friend. I'll try this code !

Thread Participants: 1

Tags for this Thread