You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #171
    Sencha User
    Join Date
    Jul 2010
    Posts
    22
    Vote Rating
    0
    DHainzl is on a distinguished road

      0  

    Default


    I don't know if this has changed, but try to listen to the beforeadd-event of the tabpanel. Check in this function, if a tab with this id already exists and return false if it does. See: http://docs.sencha.com/ext-js/4-0/#/...vent-beforeadd

    -- Dave
    Too lazy to add a clever signature

  2. #172
    Sencha User
    Join Date
    Oct 2010
    Location
    Dublin, Ireland
    Posts
    26
    Vote Rating
    0
    ShaneMc is on a distinguished road

      0  

    Default problem extending Ext.form.field.ComboBox?

    problem extending Ext.form.field.ComboBox?


    @Hainzl, Thank you for your prompt response.

    I have another problem.
    I am trying to extend Ext.form.field.ComboBox, however I get the following error when I try to add the extended Combo to a form:
    Uncaught TypeError: Cannot read property 'dom' of null
    This is on line 61802 of ExtJs4.1 ext-all-debug.js inside the renderActiveError method.
    Can you help me with this please?

    Below is an example of my code:


    Code:
    Ext.define('GenericCombo', {
        extend: 'Ext.form.field.ComboBox',
        alias: 'widget.genericcombo',
    
        //the constructor
        constructor: function(config) {
    
            var store = new Ext.data.JsonStore({
                fields: ['Key', 'Value'],
                data : config.combodata || []
            });//new Ext.data.Store
            
            Ext.apply(this, config, {
                store: store,
                displayField: 'Value',
                valueField: 'Key',
                queryMode: 'local',
                emptyText:'Select a value...'
            });
    
            this.callParent([this]);
        }//end constructor
    
    });//end Ext.define
    The config.combodata for the store looks like below:

    Code:
    "combodata":[
                {"Key":"","Value":"<None>"},
                {"Key":"!#","Value":"Dr"},
                {"Key":"!$","Value":"Miss"}
            ]
    I instantiate the genericcombo like below:

    Code:
    {
        "anchor":"50%",
        "autoScroll":false,
        "border":false,
        "combodata":[
              {"Key":"","Value":"<None>"},
              {"Key":"!#","Value":"Dr"}
            ],
        "fieldLabel":"Title",
        "name":"3820",
        "value":"!)",
        "xtype":"genericcombo"
     }

  3. #173
    Sencha User
    Join Date
    Jul 2010
    Posts
    22
    Vote Rating
    0
    DHainzl is on a distinguished road

      0  

    Default


    Hmm, the only thing I notice is that you use
    Code:
    this.callParent([this]);
    at the end of the constructor. As far as I know, the new way of calling the parent method is
    Code:
    this.callParent(arguments);
    but I may be wrong, and maybe this is not your problem, but you could try

    -- Dave
    Too lazy to add a clever signature

  4. #174
    Sencha User
    Join Date
    Oct 2010
    Location
    Dublin, Ireland
    Posts
    26
    Vote Rating
    0
    ShaneMc is on a distinguished road

      0  

    Default Solved my problem Hainzl

    Solved my problem Hainzl


    @Hainzl: Thanks very much I have been trying to solve that for ages. Little did I know, It was something so simple.

  5. #175
    Sencha User
    Join Date
    Oct 2010
    Location
    Dublin, Ireland
    Posts
    26
    Vote Rating
    0
    ShaneMc is on a distinguished road

      0  

    Default tpl for combobox

    tpl for combobox


    I have a combo box which holds values like <None> <All> Which beacause of the <> do not display in the combo box.
    In ExtJs3 I solved the problem with the following line:

    Code:
    tpl: '<tpl for="."><div class="x-combo-list-item">{Value:htmlEncode}</div></tpl>'
    This answer and further discussion can be found
    http://www.sencha.com/forum/showthre...a-lt-select-gt

    I have tried the below in ExtJs 4 but does not work

    Code:
    tpl:'<tpl for="."><div class="x-boundlist-item">{Value:htmlEncode}</div></tpl>'
    Any ideas?

  6. #176
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by aaronbartell View Post
    I use JsonStore objects extensively in my development but I am not seeing where they exist in the latest v4 release of ExtJS. In ExtJS 3.x version I could do the following:

    PHP Code:
        var custStore =
          new 
    Ext.data.JsonStore({
            
    storeId:'custStore',
            
    autoLoad:true,
            
    url:'/pgm/custmaint',
            
    baseParams:{action'loadCustList'},
            
    root:'list',
            
    totalProperty:'totalProperty',
            
    fields:['CHG','DEL','CUSTID','NAM','CTY','STT']
          }); 
    Now in version 4 it is not making a request to the server when the page loads as expected. Do I *need* to make syntactical changes in this case? (i.e. use Ext.create('Ext.data.JsonStore'.....) )

    I am not seeing simple ways to do json communication to/from the server in ExtJS4 and that is concerning me. Even more concerning is the fact that there was a huge shift in how things work yet there is hardly any examples for v4 in the Learn link at the top of this page.

    AaronBartell.com
    JsonStore is still there, though it's not really needed. You can simply create a Store with an AjaxProxy and JsonReader, which is how Ext 4 code does it. If JsonStore is not working as expected for you please provide more info on what the issue is.

  7. #177
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    53
    Vote Rating
    0
    vlads is on a distinguished road

      0  

    Default API documentation quality

    API documentation quality


    This is just for the Sencha team. Guys, you really need to update your API documentation - SO MANY configuration options have been omitted! One needs to constantly look at the code to find out what to do when migrating an application. There are mistakes in the API documentation too.

  8. #178
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by vlads View Post
    This is just for the Sencha team. Guys, you really need to update your API documentation - SO MANY configuration options have been omitted! One needs to constantly look at the code to find out what to do when migrating an application. There are mistakes in the API documentation too.
    We are constantly working to try and improve the docs. If you can suggest specific improvements or specific API calls that are missing or incorrect, please post those separately to the bugs forum and we'll be sure to get them fixed.

  9. #179
    Sencha User
    Join Date
    Oct 2010
    Location
    Dublin, Ireland
    Posts
    26
    Vote Rating
    0
    ShaneMc is on a distinguished road

      0  

    Default Modal window masks everything in extjs4?

    Modal window masks everything in extjs4?


    In ExtJs3 I created a window like below:

    Code:
    var window = new Ext.Window({
        title: 'My Window'
        .....
        renderTo: 'panel.getEl()'
        modal: true
    });
    window.show()
    Because I used the windows renderTO property, this would cause whatever the window has been rendered to, to be masked.
    However if I do the same in ExtJs 4, the whole screen gets masked regardless of what I have rendered the window to?

  10. #180
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    61
    Vote Rating
    4
    ap is on a distinguished road

      0  

    Default


    Quote Originally Posted by lukefowell89 View Post

    I realise it relates to combobox shadow or something similar, but not sure on the details.

    Another error I am getting is : -

    PHP Code:
    config is undefined      if (config.trackMouseOver !== undefined) {        ext3-compat.js (line 476
    Thanks
    If you application extends some Ext panel and it has internally configured options (defaults) which does not require the 'new' call to pass any config options, you will still have to pass on a blank config object. Because the Ext.Compat intercepts the constructors before you component is called.

    PHP Code:
    someCustomCmp = new MyApp.MyPanel( {} );  //pass a blank obj, even if your custom obj contains all the required values to call it's parent component. 

Similar Threads

  1. Migration to 3.0
    By tillda in forum Community Discussion
    Replies: 5
    Last Post: 17 Aug 2009, 7:19 AM
  2. Migration to 2.0
    By scaswell1 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 7 Jul 2009, 9:56 PM
  3. migration 1.0 to 3.0
    By alien3d in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 1 Jun 2009, 5:38 AM
  4. Migration GXT 1.2.4 to 2.0
    By G.edwin in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 15 May 2009, 6:26 AM

Thread Participants: 110

  1. aconran (1 Post)
  2. mystix (1 Post)
  3. ap (2 Posts)
  4. evant (1 Post)
  5. ethraza (1 Post)
  6. steffenk (5 Posts)
  7. brookd (4 Posts)
  8. dherbolt (2 Posts)
  9. tore.kjorsvik (1 Post)
  10. wm003 (2 Posts)
  11. stevil (4 Posts)
  12. vlads (3 Posts)
  13. paubach (1 Post)
  14. BuckBazooka (1 Post)
  15. dbraiden (1 Post)
  16. mjhaston (1 Post)
  17. demon222 (1 Post)
  18. SToto98 (1 Post)
  19. rebe (1 Post)
  20. zombeerose (6 Posts)
  21. rich02818 (3 Posts)
  22. sg707 (3 Posts)
  23. vpopa (1 Post)
  24. hschaefer123 (3 Posts)
  25. jchau (1 Post)
  26. chrisvensko (1 Post)
  27. DannyMeister (3 Posts)
  28. dajester2008 (1 Post)
  29. mschwartz (4 Posts)
  30. wgpubs (4 Posts)
  31. LisburnLad (2 Posts)
  32. edspencer (3 Posts)
  33. firefoxSafari (9 Posts)
  34. Luckyman (3 Posts)
  35. oniram88 (1 Post)
  36. danguba (7 Posts)
  37. cnesbit (2 Posts)
  38. Jangla (1 Post)
  39. MuadDib-DK (1 Post)
  40. abctenorio@gmail.com (1 Post)
  41. uzver (3 Posts)
  42. zhangt (2 Posts)
  43. peet (3 Posts)
  44. ZachG (3 Posts)
  45. yyogev (7 Posts)
  46. pcr (4 Posts)
  47. 大漠穷秋 (1 Post)
  48. jacurry (4 Posts)
  49. excyberlabber (6 Posts)
  50. dongryphon (3 Posts)
  51. Henrik Rutzou (1 Post)
  52. hazimdikenli (1 Post)
  53. paparent85 (1 Post)
  54. Ekambos (3 Posts)
  55. burnie (1 Post)
  56. aaronbartell (1 Post)
  57. mattgoldspink (1 Post)
  58. dbrin (1 Post)
  59. CraigMyers (1 Post)
  60. Francois Lecroart (5 Posts)
  61. BulletzBill (1 Post)
  62. tumbochka (1 Post)
  63. a.l (2 Posts)
  64. c.darmon (8 Posts)
  65. Dipish (1 Post)
  66. blex2010 (2 Posts)
  67. kpalser (1 Post)
  68. ldonofrio (2 Posts)
  69. DHainzl (6 Posts)
  70. MrSparks (2 Posts)
  71. rebeccapeltz (1 Post)
  72. Jeremy Solarz (1 Post)
  73. RLBruggers (2 Posts)
  74. Ourysso (1 Post)
  75. jjohnston (1 Post)
  76. ShaneMc (9 Posts)
  77. msmolyak (1 Post)
  78. watermark (1 Post)
  79. lukefowell89 (3 Posts)
  80. winkelmann (1 Post)
  81. willjohnathan (1 Post)
  82. cayenne_08 (1 Post)
  83. SebTardif (3 Posts)
  84. mberrie (3 Posts)
  85. rijkvanwel (1 Post)
  86. george4voc (1 Post)
  87. Jehu (2 Posts)
  88. freeranger (4 Posts)
  89. Inoc (1 Post)
  90. eCoast (1 Post)
  91. dstarr@allofe.com (3 Posts)
  92. bee (2 Posts)
  93. /mbr (3 Posts)
  94. ptraczynski (1 Post)
  95. qqjianyue (1 Post)
  96. jmf10024 (1 Post)
  97. Reggae (2 Posts)
  98. wimh (1 Post)
  99. jas88 (1 Post)
  100. Roho (1 Post)
  101. lokisapocalypse (1 Post)
  102. ovillemain (1 Post)
  103. Flashmattic (2 Posts)
  104. testnina123 (1 Post)
  105. jlimaye (2 Posts)
  106. rivanov (1 Post)
  107. usha.basavaraju (1 Post)
  108. rageshp_moxie (2 Posts)
  109. er_abhisinha (1 Post)
  110. darkwata (2 Posts)