1. #831
    Sencha User
    Join Date
    Oct 2010
    Posts
    33
    Vote Rating
    0
    marc123 is on a distinguished road

      0  

    Default unable to select custom values in xdatetime

    unable to select custom values in xdatetime


    Hi,

    I use Sakalos' xdatetime plugin version 2.0. When opening the timefield with the trigger I can select timevalues each 15 minutes so I can select 15:00:00, 15:15:00 etc.
    But I want to be able to also select intermediate values - e.g.15:12:00 or 15:23:46.
    This is not possible because onBlur the entered value gets rounded to the closest predefined value - e.g. 15:23:13 becomes 03:15:00 - 03 instead of 15 is probably due to the timeFormat config not properly configured.

    Is this maybe because the value in the timefield _has_ to be one of the predefined values?
    Is it possible to have this functionality?

    Thanks,

    Marc

  2. #832
    Sencha User
    Join Date
    Oct 2010
    Posts
    33
    Vote Rating
    0
    marc123 is on a distinguished road

      0  

    Default


    use the timefield config option 'increment'

  3. #833
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    384
    Vote Rating
    1
    Jangla is on a distinguished road

      0  

    Default


    None of the ext 4 versions mentioned here seem to work in 4.1.1. I keep getting the following error when trying to use the date time field on a form that's having it's details loaded via a call to loadRecord:

    Uncaught TypeError: Cannot call method 'on' of undefined

    Update: It seems to be a problem with the time field. If I comment out the time field in the class (and the initField call) the problem goes away. Obviously this isn't a solution, just hoping that bringing some more info to the table will help us all arrive at a solution

  4. #834
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Vote Rating
    0
    kirlisakal is on a distinguished road

      0  

    Default


    it should not be so hard to make a version matched download list?

    i.e.
    V3.4 > DateTime.v3.4.zip
    V4.0.7 > DateTime.v4.0.zip
    V4.1.1 > DateTime.v4.1.zip


    it will stop all the turmoil in forum. pls... I just cant find for v4.0.7

  5. #835
    Sencha User
    Join Date
    Sep 2011
    Posts
    3
    Vote Rating
    0
    Jojo79 is on a distinguished road

      0  

    Default


    Quote Originally Posted by Jojo79 View Post
    Not a extjs expert.. Just tried to migrate DateTime to Extjs version 4.
    Attached the file 'datetime-extjs4.zip'.

    The component is working on FF 4+/Chrome.. Not tested with IE.
    To resolve layout issues, you can wrap this component in panel or field container.

    Any improvements/comments are welcomed.

    Thanks!
    A better approach for ExtJs 4.x would be as mentioned here