Hybrid View

  1. #1
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default Datetimepicker

    Datetimepicker


    I'm not sure if someone have done Datetimepicker in ST2, but have seen couple of those in ST1.
    You can have a look into https://github.com/tomalex0/SenchaTo...Datetimepicker.
    Screenshots are available at https://github.com/tomalex0/SenchaTo...ree/master/img

    I have also setup few examples to get a better idea of implementation of DateTimePicker and DateTimePickerField.



    Have a look and let me know any issues.
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    10
    Vote Rating
    0
    jonathanbruno89 is on a distinguished road

      0  

    Default


    Thanks for sharing, I had no problems in the implementation

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Gujarat,India
    Posts
    54
    Vote Rating
    0
    nareh tank is on a distinguished road

      0  

    Default


    Not working with Sencha Touch 2 beta .
    It gives Cannot call method 'getPageBox' of null this error while click on datetimepickerfield.

  4. #4
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default


    Hi,

    Please check the github for updated code, i have made a quick fix.
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  5. #5
    Sencha User
    Join Date
    Mar 2011
    Location
    Gujarat,India
    Posts
    54
    Vote Rating
    0
    nareh tank is on a distinguished road

      0  

    Default


    Thanks tomalex0 now this work for me.
    thanks again.

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    MackeyMack is on a distinguished road

      0  

    Default Broken in 2.0.1 rc

    Broken in 2.0.1 rc


    They added usedom parameter to picker slot getvalue function. To fix just change DateTime.js line 155 to...

    values[item.getName()] = item.getValue(true);

  7. #7
    Ext JS Premium Member Spenna's Avatar
    Join Date
    Apr 2008
    Posts
    63
    Vote Rating
    0
    Spenna is on a distinguished road

      0  

    Default


    Just a heads up for anyone having problems with this component with ST 2.3.1
    Make sure you grab the latest version from the authors github:
    https://github.com/tomalex0/senchatouch-datetimepickerv2

    The one from sencha market is outdated.

    Also, i noticed the input field was masked with some grey background in chrome, this can be removed by changing the following line in DateTimePicker.js (in initialize)

    Code:
    this.getComponent().input.dom.disabled = true;
    To this
    Code:
    if (Ext.browser.is.AndroidStock2) {            
        this.getComponent().input.dom.disabled = true;
    }