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. #191
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    38
    Vote Rating
    0
    dstarr@allofe.com is on a distinguished road

      0  

    Default


    Quote Originally Posted by zhangt View Post
    Hi,

    I have started to migrate our codes from Ext 3 to 4. I find an issue with grid when using compatibility layer - grid headers are above the toolbar. It is really weird. Does anyone have the same issue? I guess it is a bug of compatibility files as it does not happen in pure Ext 4 environment.

    Thanks.
    May have already been answered, but it's because of the overridden Ext.panel.AbstractPanel.prototype.getDockedItems at the top of ext3-core-compat.js. If you remove that method, your grid column headers will show below tbars.

  2. #192
    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 dstarr@allofe.com View Post
    May have already been answered, but it's because of the overridden Ext.panel.AbstractPanel.prototype.getDockedItems at the top of ext3-core-compat.js. If you remove that method, your grid column headers will show below tbars.
    Yes that was answered somewhere else, and also fixed in the current version of the compat file.

  3. #193
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default Compat file breaks tree sorting

    Compat file breaks tree sorting


    If you run the tree drag&drag example (../ext/examples/tree/two-trees.html), you will notice that all folders are displayed first in alpha order followed by files.

    However, if you include the compatibility files into the two-trees.html source, then sorting is completely ignored (reason unknown).

    Code:
    <script type="text/javascript" src="../extjs/compatibility/ext3-core-compat.js"></script>
    <script type="text/javascript" src="../extjs/compatibility/ext3-compat.js"></script>
    Applies to sorters and folderSort options.

  4. #194
    Sencha User cnesbit's Avatar
    Join Date
    Feb 2009
    Posts
    55
    Vote Rating
    0
    cnesbit is on a distinguished road

      0  

    Default Anyone else getting this error?

    Anyone else getting this error?


    Anyone else getting this error?
    Code:
    cls.override is not a function
    http://cnesbit/v2/ext4.0.1/ext-all-debug.js
    Line 171
    It happens in my overrides file where in Ext3 I could code one of the following options...
    Code:
    Ext.override(Ext.Panel,{
    ...
    }) ;
    //or
    Ext.Panel.override({
    ...
    });
    Note that, I even converted all my override declarations to the first way thinking that might solve the problem (that's how the ext4 api does it, am I right?)
    What am I needing to change to migrate to Ext4 with my overrides file?

  5. #195
    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 cnesbit View Post
    Anyone else getting this error?
    Code:
    cls.override is not a function
    http://cnesbit/v2/ext4.0.1/ext-all-debug.js
    Line 171
    It happens in my overrides file where in Ext3 I could code one of the following options...
    Code:
    Ext.override(Ext.Panel,{
    ...
    }) ;
    //or
    Ext.Panel.override({
    ...
    });
    Note that, I even converted all my override declarations to the first way thinking that might solve the problem (that's how the ext4 api does it, am I right?)
    What am I needing to change to migrate to Ext4 with my overrides file?
    [class].override should still work just fine (as will Ext.override), except that now the overridden class must have been defined in the Ext class system I believe (via Ext.define). Are you getting the error on a non-Ext class?

  6. #196
    Sencha User cnesbit's Avatar
    Join Date
    Feb 2009
    Posts
    55
    Vote Rating
    0
    cnesbit is on a distinguished road

      0  

    Default


    Quote Originally Posted by brian.moeskau View Post
    Are you getting the error on a non-Ext class?
    turns out the specific problem was with an override written by nerdydude81 to enable printing of Ext.Elements (in prior versions of Ext). In Ext4, changing the code from overriding Ext.Element to overriding Ext.Component gets rid of the error, but I still have about 150+ errors to dig through just to pull up the webapp (it's a hefty beast of an app). I guess I have no way of knowing if the printing still works until I finish correcting all the other errors first.

    wow, this migration is a HUGE process (nearly 200,000 lines of code, per webapp, for a single developer to maintain )

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

      0  

    Default How can I force the layout of a fieldset when hidden/collapsed?

    How can I force the layout of a fieldset when hidden/collapsed?


    In Ext 3 the fieldset had a config property forceLayout to enforce the container to doLayout initially.
    How can i achieve the same in Ext4?

  8. #198
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    16
    Vote Rating
    0
    c.darmon is on a distinguished road

      0  

    Default


    I'm migrating my desktop application, and I found a big problem using a window plugin in a Module window (see desktop example) in extjs4 :
    When I want to move the window plugin it disappears ... (all was fine with extjs3)
    Did some one already resolved this problem?
    I want to try building a constrained window in place, is it the right solution?

    Thanks,
    Caroline.

  9. #199
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    16
    Vote Rating
    0
    c.darmon is on a distinguished road

      0  

    Default


    Because of lake of tree editor in extjs4, I adapt the tree grid editor on tree to be able renaming nodes into tree from an edition event fires on tree.
    I use a custom class extending Ext.grid.plugin.CellEditing (see below) :

    Code:
    Ext.define( 'MyTreeEditor', {
        extend: 'Ext.grid.plugin.CellEditing',
        alias: 'editing.treeeditor',
    
        // initialization method of plugin
        init: function(cmp) {
            this.hostCmp = cmp;
            // on parent event
            this.hostCmp.on({
                // on edition event
                edition : {
                    fn : function(view, record, item, index, e){
                        // call the start edition method
                        this.startEdit(record, view.getHeaderAtIndex(0),this);
                    },
                    scope: this
                }
            });
            this.callParent(arguments);
        },
        
        onEditComplete : function(ed, value, startValue) {
            if (value !== startValue) {
                //TODO: validation
            }
            this.callParent(arguments);
        },
    
        /**
         * overwrite the initEditTriggers to disable edition on click/dblclick
         * and to add custom 
         */
        initEditTriggers: function() {
    
            var me = this,
            view = me.view;
    
            me.on({
                edit: function(editor,event){
                    // if there is a modification
                    if (event.originalValue !== event.value) {
                        // delegate rename action on model
                        event.record.rename(event.value,function(result){
                            // if a result has been returned : success
                            if(result) {
                                // delegate commit action to delete modification flag
                                event.record.commit();
                                var rec = event.record.data;
                                // in case of directory
                                if (!rec.leaf){
                                    // set folder's ID returned by server
                                    rec.id = result.id;                                
                                }
                            } else { // in case of transaction error
                                if (event.originalValue === amdaModel.AmdaNode.NEW_DIR_NAME) {
                                    var toto;
                                } else {
                                    // reset originalValue:
                                    event.record.value = event.originalValue;
                                    event.record.data.text = event.originalValue;
                                    event.record.commit();
                                }
                            }
                        });
                    }
    
                }
            });
    
            // enable Enter key and Esc Key
            view.on('render', function() {
                me.keyNav = Ext.create('Ext.util.KeyNav', view.el, {
                    enter: me.onEnterKey,
                    esc: me.onEscKey,
                    scope: me
                });
            }, me, { single: true });
        },
    
        //overwrite the getEditing context because we do not need the rowId
        getEditingContext: function(record, columnHeader) {
            var me = this,
            grid = me.grid,
            store = grid.store,
            colIdx,
            view = grid.getView(),
            value;
    
            // getting colIdx and real columnHeader
            if (Ext.isNumber(columnHeader)) {
                colIdx = columnHeader;
                columnHeader = grid.headerCt.getHeaderAtIndex(colIdx);
            } else {
                colIdx = columnHeader.getIndex();
            }
            // getting current value
            value = record.get(columnHeader.dataIndex);
    
            // return editing context
            return {
                grid: grid,
                record: record,
                field: columnHeader.dataIndex,
                value: value,
                column: columnHeader,
                colIdx: colIdx
            };
        }
    } );
    I use it in tree declaration as :
    Code:
    var tree = Ext.create('Ext.tree.Panel', {
        [...]
        selModel: { //use the grid cell model
            selType: 'cellmodel',
        },
        //add our custom editor plugin
        plugins: [new MyTreeEditor({ pluginId: 'treeEditor' })]
    });
        }
    All works fine until extjs4.0.1 but not in 4.0.2 which has still no tree editor...

    Please, can someone help me...
    Caroline

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

      0  

    Default Grid CheckBox Selection Model appearing twice?

    Grid CheckBox Selection Model appearing twice?


    Just updated my code to use the latest version 4.0.2.
    However the grids checkbox selection model now seems to appear twice? But not in version 4.0.1?

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)