Thank you for reporting this bug. We will make it our priority to review this report.
  1. #211
    Ext JS Premium Member SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    443
    Vote Rating
    9
    SebTardif is on a distinguished road

      0  

    Default


    http://docs.sencha.com/ext-js/4-0/#!...container.Card is wrong

    It says: the only way to move from one Component to the next is by calling setActiveItem, passing the id or index of the next panel to display.

    Correction: you can also pass an instance of a panel (which is more readable), see http://docs.sencha.com/ext-js/4-0/#!...-getActiveItem

  2. #212
    Sencha User renku's Avatar
    Join Date
    Feb 2009
    Location
    Estonia
    Posts
    437
    Vote Rating
    17
    renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold

      0  

    Default


    Thanks campersau1 and SebTardif. These issues are now fixed internally.

  3. #213
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,596
    Vote Rating
    324
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    http://docs.sencha.com/ext-js/4-0/#!...nent-cfg-xtype

    The documentation for xtype is very misleading. It describes how it used to work in ExtJS 2 but it does not work this way in ExtJS 3 or 4. Many people (including some ExtJS developers I've spoken to) still believe that xtypes give them lazy rendering or lazy instantiation as described here. It doesn't.

    In the example given there are 2 panels. In the first example the button is created just before the panel. In the second example it will be created by the panel's constructor. Though the timing is subtly different there isn't any real difference in the end result. It certainly does not do what is described in the docs.

    I really like xtypes. It seems a shame that the real benefits aren't documented and this historical use case is still the one most people give for using them.

  4. #214
    Sencha User
    Join Date
    Jul 2010
    Location
    Palo Alto
    Posts
    60
    Vote Rating
    0
    nick_p is on a distinguished road

      0  

    Default


    Hi skirtle,

    We're updating the xtype docs which should be live in the not too distant future. Thanks for pointing out the inaccuracies

    Nick
    Ext 4 Documentation http://docs.sencha.com/ext-js/4-0/
    J
    SDuck Documentation Generator https://github.com/senchalabs/jsduck

  5. #215
    Sencha User
    Join Date
    Aug 2011
    Posts
    33
    Vote Rating
    2
    tonyx is on a distinguished road

      0  

    Default Actioncolumn handler documentation bug?

    Actioncolumn handler documentation bug?


    In the documentation, we are told

    handler : Function
    A function called when the icon is clicked. The handler is passed the following parameters:
    • view : TableViewThe owning TableView.
    • rowIndex : NumberThe row index clicked on.
    • colIndex : NumberThe column index clicked on.
    • item : ObjectThe clicked item (or this Column if multiple items were not configured).
    • e : EventThe click event.



    However, I recently discovered that this isn't true. These are the console outputs for each of the argument to the handler function, in order.

    Code:
    Ext.grid.View <Soc.model.Survey>  [6] { id="gridview-1032"}
     <td id="ext-gen1294" class=" x-grid-cell x-grid-cell-actioncolumn-1029   x-action-col-cell x-grid-cell-last">
     0
     3
     [Trial] Ext.EventObjectImpl {}
     Object { scope=Soc.view.survey.Grid,  uievent=function()}
     Object {}
    Clearly, the second argument is not rowIndex. I think it is actually the cell in which the icons are rendered.

  6. #216
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,115
    Vote Rating
    186
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Should parentMenu still be a config for menu/items? I don't see it any longer in the documentation, but I do see it used in the source.

  7. #217
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
    hexawing is on a distinguished road

      0  

    Default


    http://docs.sencha.com/ext-js/4-0/#!...dow.MessageBox

    When viewing the examples in this page, toggle to "Preview" mode, then toggle to "Code" mode, then try to toggle to "Preview" mode again, it alerts "TypeError: a.parentNode is null" and cannot continue...

  8. #218
    Sencha User renku's Avatar
    Join Date
    Feb 2009
    Location
    Estonia
    Posts
    437
    Vote Rating
    17
    renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold renku is a splendid one to behold

      0  

    Default


    Quote Originally Posted by tonyx View Post
    Actioncolumn handler documentation bug?
    [--]
    Clearly, the second argument is not rowIndex.
    I tested with ext-4.0.2a and ext-4.0.6 and everything seems to work just fine for me. For example look at the live example of ActionColumn: http://docs.sencha.com/ext-js/4-0/#!....column.Action

    This wouldn't work if the second argument were not a rowIndex.

    Quote Originally Posted by slemmon
    Should parentMenu still be a config for menu/items? I don't see it any longer in the documentation, but I do see it used in the source.
    Not really a config option, but a property. Should be documented in next docs update.

    Quote Originally Posted by hexawing
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.window.MessageBox

    When viewing the examples in this page, toggle to "Preview" mode, then toggle to "Code" mode, then try to toggle to "Preview" mode again, it alerts "TypeError: a.parentNode is null" and cannot continue...
    Yeah, something goes wrong there. For some reason using the singleton Ext.Msg breaks things, while instantiating Ext.window.MessageBox manually works just fine. Will take a closer look at this.

  9. #219
    Ext JS Premium Member rex.staples's Avatar
    Join Date
    Jul 2007
    Location
    Austin, TX
    Posts
    33
    Vote Rating
    0
    rex.staples is on a distinguished road

      0  

    Default


    Small typo in the Further Reading section of the Getting Started guide:

    http://docs.sencha.com/ext-js/4-0/#!...etting_started

    4. Further Reading

    Layouts and Containsers

    Containers has an extra -s-.

  10. #220
    Sencha User
    Join Date
    Jun 2009
    Posts
    102
    Vote Rating
    6
    campersau1 is on a distinguished road

      0  

    Default Missing xtype in Ext.form.FieldSet

    Missing xtype in Ext.form.FieldSet


    The xtype is missing in Ext.form.FieldSet http://docs.sencha.com/ext-js/4-0/#!....form.FieldSet

Thread Participants: 168

  1. Lod (1 Post)
  2. mystix (3 Posts)
  3. Juanito (1 Post)
  4. GArrow (1 Post)
  5. adarsh_r_bhat (2 Posts)
  6. pbb72 (2 Posts)
  7. rex.staples (1 Post)
  8. rednix (1 Post)
  9. hendricd (1 Post)
  10. dogomatic (1 Post)
  11. richard.allen (1 Post)
  12. ValterBorges (4 Posts)
  13. cnelissen (1 Post)
  14. neshaug (1 Post)
  15. richardtallent (1 Post)
  16. Hemlock (2 Posts)
  17. pbienick (3 Posts)
  18. mankz (8 Posts)
  19. rstuart (1 Post)
  20. Ant1105 (1 Post)
  21. NOSLOW (1 Post)
  22. crysfel (1 Post)
  23. carl23934 (1 Post)
  24. zombeerose (19 Posts)
  25. Allwise (1 Post)
  26. themightychris (1 Post)
  27. SamuraiJack1 (1 Post)
  28. wildfire (1 Post)
  29. Qtx (4 Posts)
  30. wiznia (3 Posts)
  31. Greendrake (1 Post)
  32. charleshimmer (1 Post)
  33. chdig (1 Post)
  34. Jaitsu (1 Post)
  35. Dumas (1 Post)
  36. janhov (3 Posts)
  37. edspencer (7 Posts)
  38. firefoxSafari (1 Post)
  39. cstrong@arielpartners.com (1 Post)
  40. renku (75 Posts)
  41. westy (1 Post)
  42. slemmon (3 Posts)
  43. gevik (10 Posts)
  44. bodyboarder20 (4 Posts)
  45. ZachG (3 Posts)
  46. kleins (1 Post)
  47. campersau1 (5 Posts)
  48. 44gatti (1 Post)
  49. batweasel (1 Post)
  50. fguest (1 Post)
  51. drogers (1 Post)
  52. wsi (1 Post)
  53. ironandsteel (1 Post)
  54. McQuack_82 (1 Post)
  55. Uberdude (1 Post)
  56. hhangus (3 Posts)
  57. hexawing (4 Posts)
  58. chinabuffet (2 Posts)
  59. Ozone (2 Posts)
  60. tomb@ibcos.co.uk (5 Posts)
  61. olivierpons (1 Post)
  62. flanders (2 Posts)
  63. wufpack_jack (1 Post)
  64. devtig (1 Post)
  65. aghextjs (1 Post)
  66. WBX (1 Post)
  67. alonweiss (4 Posts)
  68. yakovsh (1 Post)
  69. gianmarco (3 Posts)
  70. halcwb (5 Posts)
  71. ykey (1 Post)
  72. korax (1 Post)
  73. zerkms (2 Posts)
  74. keithhackworth (2 Posts)
  75. eliotik (1 Post)
  76. h.wagner@telekom.de (1 Post)
  77. nosferatum (2 Posts)
  78. wbutler (1 Post)
  79. dancha (1 Post)
  80. Jan (HL) (2 Posts)
  81. touchy (1 Post)
  82. charris (2 Posts)
  83. Allan Stark (1 Post)
  84. vadimv (7 Posts)
  85. rhamflett (1 Post)
  86. Evantan (4 Posts)
  87. kent78 (1 Post)
  88. jhummel (1 Post)
  89. fishbone (1 Post)
  90. skirtle (35 Posts)
  91. LesJ (43 Posts)
  92. mangotang (2 Posts)
  93. Felicitus (1 Post)
  94. tiger.seo (3 Posts)
  95. clearbasis (1 Post)
  96. sreeser (1 Post)
  97. Rob Hogan (3 Posts)
  98. SebTardif (6 Posts)
  99. mberrie (4 Posts)
  100. rijkvanwel (1 Post)
  101. s.busch (1 Post)
  102. Nickname (4 Posts)
  103. dstarr@allofe.com (4 Posts)
  104. m4dc4p (1 Post)
  105. fdp (2 Posts)
  106. SommerEngineering (1 Post)
  107. mprogr (1 Post)
  108. Berzzzebub (2 Posts)
  109. Justin Noel (2 Posts)
  110. S├ębastien.Volle (2 Posts)
  111. sskow200 (1 Post)
  112. jobjo (1 Post)
  113. cadror (2 Posts)
  114. c089 (2 Posts)
  115. ligaard (29 Posts)
  116. neonova (2 Posts)
  117. jonathanmv (1 Post)
  118. nbabinski (4 Posts)
  119. Vasiliy Faronov (2 Posts)
  120. mrobinson (1 Post)
  121. ext-spring-mvc (1 Post)
  122. rexmpetersen (1 Post)
  123. BillHubbard (5 Posts)
  124. redraid (1 Post)
  125. Arshak (2 Posts)
  126. espeak (1 Post)
  127. Farish (2 Posts)
  128. nohuhu (1 Post)
  129. dwarf (1 Post)
  130. burnnat (12 Posts)
  131. don@electionmall.com (1 Post)
  132. sirtmp (1 Post)
  133. Jasel_ExtJS (1 Post)
  134. dusek (1 Post)
  135. bioinfo (1 Post)
  136. dpaquin (1 Post)
  137. nhoward (1 Post)
  138. Wilkins (1 Post)
  139. flatbugz (1 Post)
  140. tonyx (1 Post)
  141. eirik.lorentsen (1 Post)
  142. limscoder (1 Post)
  143. ExtJSNinjas (2 Posts)
  144. castitas (7 Posts)
  145. nealtao (1 Post)
  146. mark0978 (7 Posts)
  147. olecom (2 Posts)
  148. JimSoper (1 Post)
  149. hnordt (1 Post)
  150. WingC (2 Posts)
  151. cawoodm (1 Post)
  152. jchristen (1 Post)
  153. carrollecc (1 Post)
  154. p33t (5 Posts)
  155. user ext (1 Post)
  156. JeromeA (1 Post)
  157. mikfreeman (1 Post)
  158. DrewM (1 Post)
  159. Lascaux (1 Post)
  160. einartg (2 Posts)
  161. colin.yates (1 Post)
  162. atomcat (1 Post)
  163. Ghostly (2 Posts)
  164. bomslang (1 Post)
  165. wayne_x (1 Post)
  166. mpost (1 Post)
  167. jreusser (1 Post)
  168. ckerth (1 Post)