1. #811
    Sencha User
    Join Date
    Dec 2009
    Posts
    14
    Vote Rating
    0
    boyan.dimitrov is on a distinguished road

      0  

    Default extjs 4 version

    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
    bee is on a distinguished road

      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
    marcvdm is on a distinguished road

      0  

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

    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
    marcvdm is on a distinguished road

      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
    122
    Vote Rating
    1
    nbourdeau is on a distinguished road

      0  

    Question ExtJs4 version ??

    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
    easley is on a distinguished road

      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
    Jojo79 is on a distinguished road

      0  

    Default DateTime Migrated to Extjs version 4

    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

  8. #818
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    amsalak is on a distinguished road

      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
    122
    Vote Rating
    1
    nbourdeau is on a distinguished road

      0  

    Default


    @easley : great thank you !

  10. #820
    Sencha User
    Join Date
    Jun 2011
    Location
    Seattle, WA
    Posts
    6
    Vote Rating
    0
    ithompson is on a distinguished road

      0  

    Question Ext JS 4

    Ext JS 4


    Is there an Ext JS 4.0 version of this?

Thread Participants: 208

  1. galdaka (1 Post)
  2. grEvenX (1 Post)
  3. wolverine4277 (1 Post)
  4. berend (1 Post)
  5. umlbuzzard (1 Post)
  6. mystix (8 Posts)
  7. dawesi (4 Posts)
  8. gabbay (1 Post)
  9. JorisA (2 Posts)
  10. burn (1 Post)
  11. wenner (6 Posts)
  12. DigitalSkyline (1 Post)
  13. ChrisR (3 Posts)
  14. cocorossello (1 Post)
  15. 72 (1 Post)
  16. akannu (1 Post)
  17. danh2000 (2 Posts)
  18. DeeZ (1 Post)
  19. daviscabral (3 Posts)
  20. sharman (1 Post)
  21. ajaxE (3 Posts)
  22. ryedin (3 Posts)
  23. dandfra (5 Posts)
  24. anjelika (1 Post)
  25. MaximGB (1 Post)
  26. chernomorez (1 Post)
  27. smokeman (1 Post)
  28. FoGhost (1 Post)
  29. jcwatson11 (4 Posts)
  30. kevinwu8 (11 Posts)
  31. magunes117 (4 Posts)
  32. Barius (2 Posts)
  33. linizou (2 Posts)
  34. Clever Cutter (1 Post)
  35. Rui Lopes (3 Posts)
  36. henryli86 (1 Post)
  37. dima (1 Post)
  38. KevinChristensen (1 Post)
  39. rlx (1 Post)
  40. derbbre (1 Post)
  41. aacraig (5 Posts)
  42. kafsinkaf (1 Post)
  43. durlabh (5 Posts)
  44. Egor (1 Post)
  45. keypoint (2 Posts)
  46. elDub (7 Posts)
  47. anotherpit (3 Posts)
  48. sean.zhou (9 Posts)
  49. x51596 (1 Post)
  50. ray007 (2 Posts)
  51. seethrubob (1 Post)
  52. Gerrat (2 Posts)
  53. dphu (2 Posts)
  54. multiversal (1 Post)
  55. atascon (2 Posts)
  56. michaelc (3 Posts)
  57. adinata (2 Posts)
  58. jburnhams (1 Post)
  59. Hani79 (6 Posts)
  60. dearsina (1 Post)
  61. gfuture (1 Post)
  62. relix01 (3 Posts)
  63. ttony (2 Posts)
  64. danderson (3 Posts)
  65. marco76 (5 Posts)
  66. tarini (4 Posts)
  67. dorgan (5 Posts)
  68. acontreras (3 Posts)
  69. lobo-tuerto (4 Posts)
  70. trancee (1 Post)
  71. calavera (1 Post)
  72. broutard (1 Post)
  73. httpdotcom (2 Posts)
  74. Stefan B (7 Posts)
  75. vilivili (3 Posts)
  76. masterbuddha (2 Posts)
  77. sinma (1 Post)
  78. incaic (2 Posts)
  79. nbourdeau (7 Posts)
  80. miles.huang (1 Post)
  81. radtad (9 Posts)
  82. jenner (1 Post)
  83. demon222 (1 Post)
  84. Paul Middelkoop (1 Post)
  85. PremiereGlobal (3 Posts)
  86. qlegrand (4 Posts)
  87. LedrickLeron (2 Posts)
  88. dirkr (4 Posts)
  89. rhytha (1 Post)
  90. infinit (1 Post)
  91. ClemsonJeeper (6 Posts)
  92. conorarmstrong (2 Posts)
  93. mtrax (1 Post)
  94. ignatius (3 Posts)
  95. brenda (1 Post)
  96. xavierg (1 Post)
  97. vcastel (5 Posts)
  98. Arthur.Blake (4 Posts)
  99. dgms (1 Post)
  100. bjw5392 (2 Posts)
  101. Stripeman (2 Posts)
  102. EzBulka (2 Posts)
  103. wuschba (4 Posts)
  104. NoahK17 (3 Posts)
  105. Remy (11 Posts)
  106. predragp (1 Post)
  107. Barbanek (1 Post)
  108. johnymutton (3 Posts)
  109. abraxxa (28 Posts)
  110. cvieira (2 Posts)
  111. smithrp (1 Post)
  112. Rotomaul (1 Post)
  113. nebbian (2 Posts)
  114. tubinee (3 Posts)
  115. jhoni.chen (1 Post)
  116. snehat (1 Post)
  117. kevinconaway (1 Post)
  118. kristalgic (1 Post)
  119. hAmpzter (6 Posts)
  120. mono blaine (5 Posts)
  121. rhuanca (2 Posts)
  122. Akamy2kidsmom (2 Posts)
  123. haloween (1 Post)
  124. shiv (9 Posts)
  125. dekely (12 Posts)
  126. aborjinos (1 Post)
  127. canxss (6 Posts)
  128. khewuwei (2 Posts)
  129. lakshmi (4 Posts)
  130. notdet (3 Posts)
  131. dizor (1 Post)
  132. mschwartz (5 Posts)
  133. sprestel (1 Post)
  134. JAnderson (1 Post)
  135. maiconschelter (1 Post)
  136. oegozi (6 Posts)
  137. Dumas (3 Posts)
  138. jgeewax (1 Post)
  139. ylaroche (5 Posts)
  140. marcvdm (2 Posts)
  141. Grolubao (2 Posts)
  142. uptodate (2 Posts)
  143. Jangla (6 Posts)
  144. rob_howe (1 Post)
  145. pibree (1 Post)
  146. einavb (2 Posts)
  147. bbirtle (1 Post)
  148. annextjs (7 Posts)
  149. ampnezz (2 Posts)
  150. mogwai (1 Post)
  151. igreg (1 Post)
  152. dthemistokleous (1 Post)
  153. quicksilver_in (2 Posts)
  154. Opsone (2 Posts)
  155. Gonfi (2 Posts)
  156. Keylan (1 Post)
  157. Sigma (1 Post)
  158. advarot (1 Post)
  159. Scott Murawski (4 Posts)
  160. isit.gd (1 Post)
  161. realjax (3 Posts)
  162. tigerfoot (8 Posts)
  163. harel (2 Posts)
  164. iryndin (1 Post)
  165. roger.harrington (1 Post)
  166. cscagliola (2 Posts)
  167. Kirill_Sychin (3 Posts)
  168. mrjoltcola (5 Posts)
  169. innerbreath (1 Post)
  170. mebuzzme (1 Post)
  171. sramirez (1 Post)
  172. ilevina (2 Posts)
  173. boyan.dimitrov (1 Post)
  174. lwarring (1 Post)
  175. codeable (1 Post)
  176. ozum (2 Posts)
  177. chenzero (4 Posts)
  178. erdna (4 Posts)
  179. icarey (2 Posts)
  180. heratech (1 Post)
  181. stevek (1 Post)
  182. DanielT (2 Posts)
  183. seand (1 Post)
  184. smartbinary (2 Posts)
  185. taporari (2 Posts)
  186. Lobo (2 Posts)
  187. daydreamer01 (1 Post)
  188. oldtenen (1 Post)
  189. krishnaswamy (1 Post)
  190. ajmas (1 Post)
  191. maina (1 Post)
  192. Joe Kuan (3 Posts)
  193. easley (3 Posts)
  194. marc123 (2 Posts)
  195. njsnow7 (1 Post)
  196. I_Leising (1 Post)
  197. olka (1 Post)
  198. bee (1 Post)
  199. jonaldomo (1 Post)
  200. ithompson (2 Posts)
  201. Jojo79 (2 Posts)
  202. zhaoshixuan (1 Post)
  203. SSzretter (1 Post)
  204. amsalak (1 Post)
  205. abc_check (1 Post)
  206. Deadlock (1 Post)
  207. kirlisakal (1 Post)
  208. endino (1 Post)