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
    Sencha User kriskhaira's Avatar
    Join Date
    Mar 2012
    Posts
    9
    Vote Rating
    0
    kriskhaira is an unknown quantity at this point

      0  

    Default


    FYI, I got the Cannot call method 'getPageBox' of null error too, but the latest JS files on Github as recommended by tomalex0 worked for me.

  8. #8
    Sencha User kriskhaira's Avatar
    Join Date
    Mar 2012
    Posts
    9
    Vote Rating
    0
    kriskhaira is an unknown quantity at this point

      0  

    Default


    The Cannot call method 'getPageBox' of null error happens in the Github version for the Cancel button.

  9. #9
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    arbihaza is on a distinguished road

      0  

    Default My App rejected due to the datetimepicker field

    My App rejected due to the datetimepicker field


    Hi tomalex0,

    I used your datetimepicker on my android app and successfully distribute it to google play.
    But when i'm distributing my iOS app, my app is rejected and i got an email stated that the reason why my app is rejected is because the datetimepicker field is not in compliance with App Store Review Guidelines.
    They tested my app in iPad running iOS 5.1.1. This is their comment:

    "As recommended by the iOS Human Interface Guidelines, Pickers should only be presented within a popover element, Pickers should not take up the entire width of the screen."
    In my understanding, your datetimepicker take up the entire width of the screen even on iPad. Or should i do something to make it presented within a popover element when the app is running on iPad?

    Thanks.

  10. #10
    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


    @arbihaza

    This is new to me, is your app targeted ipad alone ? what about other lower IOS versions? I think its better you show the picker in some pop up then.

    I haven't actually considered these things while developing the component, anyway thanks for the information.
    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