1. #331
    Ext User shiv's Avatar
    Join Date
    Aug 2008
    Posts
    37
    Vote Rating
    0
    shiv is on a distinguished road

      0  

    Default


    yes, your example does work in FF2/Mac. That's why I think my problem is caused by the way i'm implementing the EditorGrid (because the DateTime field does work for me when it's part of a Form). I'm creating the EditorGrid like so:

    Code:
        myGrid = new Ext.grid.EditorGridPanel({
            title: 'Guests (general)',
            store: mainDataStore, colModel: myColumnModel,
            enableColumnHide: true, enableColumnMove: true, clicksToEdit: 2,
            autoWidth: true, autoHeight: true,
            plain: true, layout: 'fit', closable: false, renderTo: 'gridArea',
            viewConfig: {forceFit: true}, plugins: [ RowExpander ],
            selModel: new Ext.grid.RowSelectionModel( {singleSelect: false} ),
            autoExpandColumn: 'guestName',
            tbar: [
                {text: 'Add new guest', iconCls: 'addButton', handler: displayFormWindow},
                {text: 'Delete selected', iconCls: 'deleteButton', handler: confirmDelete}
            ],
            bbar: []
        });
        myGrid.on( 'afteredit', saveTheGuest );
    the column model is defined like so (before defining the grid):

    Code:
          var myColumnModel = new Ext.grid.ColumnModel([
            RowExpander,
            {header: 'Name', dataIndex: 'guestName', id: 'guestName', width: 100, hideable: false, editor: new Ext.form.TextField( {allowBlank: false, maxLength: 60} )},
            {header: 'Email', dataIndex: 'emailAddress', id: 'emailAddress', width: 100, sortable: false, hidden: true, editor: new Ext.form.TextField( {maxLength: 60} )},
             {header: 'Arr time', dataIndex: 'arrTime', width: 75, renderer: formatShortDateTime, editor: new Ext.ux.form.DateTime( {id: 'arrTime', timeWidth: 75} )},
            {header: 'Arr airport', dataIndex: 'arrAirport', width: 75, hidden: true, editor: new Ext.form.TextField( {maxLength: 10} )},
            {header: 'Dep time', dataIndex: 'depTime', width: 75, renderer: formatShortDateTime, editor: new Ext.ux.form.DateTime( {id: 'depTime', timeWidth: 75} )},
            {header: 'Dep airport', dataIndex: 'depAirport', width: 75, hidden: true, editor: new Ext.form.TextField( {maxLength: 10} )},
            {header: 'Notes', dataIndex: 'notes', id: 'notes', width: 100, sortable: false, editor: new Ext.form.TextArea( {grow: true, maxLength: 255} )}
        ]);
        myColumnModel.defaultSortable = true;
    the reason I'm splitting these up is that I have several separate but similar pages that show different "guest" columns by default. It's easier for me to reuse the grid code and simply modify the columnModel for different "views".

    Worst-case scenario is that I require all my users to upgrade to Firefox 3! If I can't figure this out, that's what happens.

  2. #332
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,561
    Vote Rating
    384
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    autoWidth and autoHeight are mutually exclusive with layout:'fit' - they are ignored at best. I do not see any other obvious mistake.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #333
    Sencha Premium Member
    Join Date
    Nov 2007
    Posts
    1
    Vote Rating
    0
    seethrubob is on a distinguished road

      0  

    Default updateDate bug

    updateDate bug


    I think we found a bug in the widget that will only occur a few times a year.

    The updateDate function calls initDateValue which sets the dateValue to the current date and time. The function then overwrites the year, month and date with the values supplied from the date field.

    Code:
    if(!(this.dateValue instanceof Date)) {
       this.initDateValue();
       if(!this.tf.getValue()) {
          this.setTime(this.dateValue);
       }
    }
    this.dateValue.setMonth(0); // because of leap years
    this.dateValue.setFullYear(d.getFullYear());
    this.dateValue.setMonth(d.getMonth());
    this.dateValue.setDate(d.getDate());
    What happened was the current date/time was 10/31/2008 12:00:00 and we selected an early September date from the calendar. The setFullYear worked fine. The date selected in the widget was in September, since September doesn't have 31 days when setMonth was called the dateValue ended up being set to 10/01/2008 ie. the 31st day of September. Then the setDate worked as expected. So the end result was the internal dateValue was a month ahead of what we selected, although the date we selected displayed properly in the date field.

    I can see numerous ways to fix this but went with changing:

    Code:
    this.dateValue.setMonth(d.getMonth());
    this.dateValue.setDate(d.getDate());
    to:

    Code:
    this.dateValue.setMonth(d.getMonth(), d.getDate());

  4. #334
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,561
    Vote Rating
    384
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Thank you for finding the bug and providing the patch.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #335
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default Ext.ux.form.DateTime -Can't see calendar in in a grid

    Ext.ux.form.DateTime -Can't see calendar in in a grid


    Hi,

    When I use this component in a grid, all I see is a time dropdown.
    where is the calendar?

    thanks in advance,

    Code:
    var actionlog_datetime = new Ext.ux.form.DateTime({ id:'actionlog_datetime', name:'actionlog_datetime', fieldLabel:'Date & Time', timeFormat:'H:i', timeConfig: { altFormats:'H:i', allowBlank:true }, dateFormat:'d.m.Y',dateConfig: { altFormats:'d.m.Y', allowBlank:true } });
     
    
    { header:
    'Arr time', dataIndex: 'arrTime', editor: actionlog_datetime
    }
    Last edited by mystix; 5 Nov 2008 at 2:38 AM. Reason: merged with main thread
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

  6. #336
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,561
    Vote Rating
    384
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Try to set timePosition:'below' or widen the column
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  7. #337
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default


    Solved!
    It was a layout issue

    thanks
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

  8. #338
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default Limit date in Ext.ux.form.DateTime

    Limit date in Ext.ux.form.DateTime


    Hi,

    How do I limit a maximum and a minimum date+time ?

    thanks
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

  9. #339
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default Solved !!!

    Solved !!!


    dueDateEditor.df.maxValue =
    new Date();

    dueDateEditor.df.minValue =
    new Date();
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

  10. #340
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default Ext.ux.form.DateTime validation issue

    Ext.ux.form.DateTime validation issue


    Hi,

    The validation is done for each field individually and not to the whole value
    My schenario:
    I need to limit the component to a future date
    If the date is tomorrow (which is ok) but the time is earlier today than the time field is invalid.

    Is it possible to perform validation to the whole value ? (date+time)

    thanks in advance
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

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)