1. #31
    Sencha User
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
    labafian is on a distinguished road

      0  

    Default


    tested, Ext.form.field.Date working great!

  2. #32
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    0
    mehdiemrani is on a distinguished road

      0  

    Default


    hi, you did a great job, but can you leave a sample here or in github please. thanks.

  3. #33
    Sencha User
    Join Date
    Oct 2007
    Location
    Iran
    Posts
    161
    Vote Rating
    0
    vahid4134 is on a distinguished road

      0  

    Default


    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

  4. #34
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    0
    mehdiemrani is on a distinguished road

      0  

    Default


    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.


    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');
        },
    me.callParent function set me.eventEl as null !!!



    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

  5. #35
    Sencha User
    Join Date
    Aug 2011
    Posts
    3
    Vote Rating
    0
    fshnet is on a distinguished road

      0  

    Default


    Quote Originally Posted by mehdiemrani View Post
    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.


    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');
        },
    me.callParent function set me.eventEl as null !!!




    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.
    What exactly did you change?
    I'm facing the exact same problem right now.

  6. #36
    Sencha User
    Join Date
    Oct 2007
    Location
    Iran
    Posts
    161
    Vote Rating
    0
    vahid4134 is on a distinguished road

      0  

    Default Ext 4.1.1

    Ext 4.1.1


    I update repository to support Ext 4.1.1
    https://github.com/vahid-sohrabloo/Ext.Pdate/
    No honor is like knowledge

  7. #37
    Sencha User
    Join Date
    Aug 2011
    Posts
    3
    Vote Rating
    0
    fshnet is on a distinguished road

      0  

    Default


    Thanks Vahid
    your update works perfectly except whenever i try month view this error occurs
    Code:
    Ext.picker.PMonth( is not a constructor
    Looking at your code i figured out you're missing a requires section like this

    Code:
    requires: ['Ext.picker.PMonth']
    adding that line to picker/PDate.js fixed the problem

  8. #38
    Sencha User
    Join Date
    Oct 2007
    Location
    Iran
    Posts
    161
    Vote Rating
    0
    vahid4134 is on a distinguished road

      0  

    Default


    Thanks Update
    No honor is like knowledge

  9. #39
    Sencha User
    Join Date
    Nov 2009
    Posts
    4
    Vote Rating
    0
    hossein1364 is on a distinguished road

      0  

    Default sample use of Ext.PDate

    sample use of Ext.PDate


    download attachment and enjoy
    Attached Files