Page 82 of 84 FirstFirst ... 32728081828384 LastLast
Results 811 to 820 of 837

Thread: [new version] DateTime Field

  1. #811
    Sencha User
    Join Date
    Dec 2009
    Posts
    14
    Vote Rating
    0
      0  

    Default extjs 4 version

    I'm trying to align the existing control to extjs 4. overall everything was smooth except anchoring. any hints how to anchor control correctly ?

  2. #812
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Vote Rating
    0
      0  

    Default

    Hi I would like to use this xdatetime in my forms of extjs 4.0, but I am getting exception. Please let me know how to use it in extjs 4.0

  3. #813
    Sencha User
    Join Date
    Jan 2009
    Posts
    11
    Vote Rating
    0
      0  

    Default Use of setValue() on xdatetimefield submits wrong values?

    Hello,

    I use the xdatetime extension in combination with Extjs 3.4.0. (but I had the same problem already in some older 3.0 versions).

    At first sight, everything is working fine. As long as I manually change the date and timefields, the values show up correctly, and can be correctly retrieved with formValues().

    But I want to preset values in those fields by using setValue(). Also this seems to work at first sight: if I do setValue(date) or setValue(time), date and time are indeed showing up correctly in the date and timefields.

    However, when the form is processed (=when I use formValues() ), the retrieved date and time fields of the xdatetimefields still contain the old values (the ones before setValue() was used). So I can never submit the correct preset values to the server, only values that have been changed manually.

    I also noticed that if I just focus/blur those fields once manually before I call formValues(), then I do get the right values. So I thought about a workaround by simulating this with fireEvent(focus) or fireEvent(blur), but this does not have the desired effect.

    Anybody has an idea what is going on?

    Best regards, Marcvdm.

    Below is a sample of code. The buttons are meant for quickly jumping a day or a week backwards, similar buttons exist on the page to jump a day or a week forward. Which is what they appear to do on screen, but as explained above, they keep submitting the original values.
    And yes, I checked already that hey all have unique component id's

    Code:
    {
            xtype: 'panel',
            layout: 'column',
            hidden: false,
            items: [{
              xtype: 'button',
              text: '<<&nbsp',
              tooltip: 'a week sooner',
              listeners: {
                click: function ClickWeekSooner(){
                  var begintime=Ext.getCmp('begintime');
                  begintime.df.setValue(begintime.df.getValue().add(Date.DAY,-7));
                  var endtime=Ext.getCmp('endtime');
                  endtime.df.setValue(endtime.df.getValue().add(Date.DAY,-7));
                 
                }
              }
    
              },{
              xtype: 'button',
              text: '<&nbsp&nbsp',
              tooltip: 'a day sooner',
              listeners: {
                click: function ClickdaySooner(){
                  var begintime=Ext.getCmp('begintime');
                  begintime.df.setValue(begintime.df.getValue().add(Date.DAY,-1));
                  var endtime=Ext.getCmp('endtime');
                  endtime.df.setValue(endtime.df.getValue().add(Date.DAY,-1));
     
                }
              }
    
              }]
    
            }

  4. #814
    Sencha User
    Join Date
    Jan 2009
    Posts
    11
    Vote Rating
    0
      0  

    Default

    I forgot to make oine thing clear in the previous message: 'begintime' and 'endtime' are id's of two different xdatetimefields. The buttons change both, preserving the timeslot.

  5. #815
    Touch Premium Member
    Join Date
    Jan 2008
    Location
    Quebec, Canada
    Posts
    136
    Vote Rating
    5
      0  

    Question ExtJs4 version ??

    This thread is pretty huge and searching in it is a pain ....
    Does someone made an updated version of the DateTime Field for ExtJs 4 ???

  6. #816
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    Nottingham, UK
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by nbourdeau View Post
    Does someone made an updated version of the DateTime Field for ExtJs 4 ???
    This worked OK for me.

  7. #817
    Sencha User
    Join Date
    Sep 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default DateTime Migrated to Extjs version 4

    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!
    Attached Files Attached Files

  8. #818
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by nbourdeau View Post
    This thread is pretty huge and searching in it is a pain ....
    Does someone made an updated version of the DateTime Field for ExtJs 4 ???
    Update was successful for me without any errors

  9. #819
    Touch Premium Member
    Join Date
    Jan 2008
    Location
    Quebec, Canada
    Posts
    136
    Vote Rating
    5
      0  

    Default

    @easley : great thank you !

  10. #820
    Sencha User
    Join Date
    Jun 2011
    Location
    Seattle, WA
    Posts
    14
    Vote Rating
    0
      0  

    Question Ext JS 4

    Is there an Ext JS 4.0 version of this?

Page 82 of 84 FirstFirst ... 32728081828384 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •