Hybrid View
-
8 Jul 2012 2:45 PM #1
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
-
Best Answer Posted by sword-it
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.'); } } } ] } ] });
-
9 Jul 2012 12:16 AM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
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.
-
9 Jul 2012 4:14 AM #3
Thanks
Thanks
Thanks my friend. I'll try this code !


Reply With Quote