tested, Ext.form.field.Date working great!
hi, you did a great job, but can you leave a sample here or in github please. thanks.
Ok . I upload new example.
But use this component is very simple and like default DatePicker. Just import js files (Please be careful the order them) and Use Ext.form.field.PDatefield like Ext.form.field.Datefield
No honor is like knowledge
I use PDate with ext-4.0.7-gpl/ext-all.js version and every things is OK and really it's great,
but when i want to use ext-4.1.0-gpl/ext-all.js or ext-4.1.0-gpl/ext-all-debug.js I got this error: me.eventEl is null.
me.callParent function set me.eventEl as null !!!Code:onRender : function(container, position){ var me = this; debugger; me.callParent(arguments); me.el.unselectable(); me.cells = me.eventEl.select('tbody td'); me.textNodes = me.eventEl.query('tbody td span'); },
Solved:
I made some changes in your codes and now it's work on version 4.1
thanks again for your nice job, good luck.
Last edited by mehdiemrani; 15 Aug 2012 at 4:39 AM. Reason: Problem Solved
I update repository to support Ext 4.1.1
https://github.com/vahid-sohrabloo/Ext.Pdate/
No honor is like knowledge
Thanks Vahid
your update works perfectly except whenever i try month view this error occurs
Looking at your code i figured out you're missing a requires section like thisCode:Ext.picker.PMonth( is not a constructor
adding that line to picker/PDate.js fixed the problemCode:requires: ['Ext.picker.PMonth']
Thanks Update
No honor is like knowledge
download attachment and enjoy![]()