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. #201
    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 ShaneMc View Post
    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?
    forceLayout was a Container config in 3.x. I would assume that it's no longer needed since 4.0 tends to manage that type of stuff for you better than 3.x did (though I haven't personally studied that particular use case in 4.0). If there is a specific problem where something is not working I would post it as a separate item in the help or bugs forums.

  2. #202
    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 c.darmon View Post
    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.
    I'm not sure I understand the problem... Have you tried comparing the Ext 3 and 4 versions of the desktop? The Ext 4 version works great. In this case, it might be easier to model your code after that example rather than trying to migrate the old one manually. In fact, the things that required custom UX'es in 3.x (the start menu and task bar) have now been greatly simplified and probably aren't worth trying to port from 3.x.

  3. #203
    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 c.darmon View Post
    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
    Are you getting any specific errors? You might have to debug a little bit for this, as it's impossible on this end to guess what the issue might be without a working test case. Are you testing this out with one of the standard Ext tree examples?

  4. #204
    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 ShaneMc View Post
    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?
    You mean with the compatibility layer active?

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

      0  

    Default


    Quote Originally Posted by brian.moeskau View Post
    You mean with the compatibility layer active?
    Hey Brian, Yeah it was the compatibility layer causing the problem.
    Removed it and everything works fine.

  6. #206
    Sencha User
    Join Date
    Mar 2009
    Posts
    1
    Vote Rating
    0
    abctenorio@gmail.com is on a distinguished road

      0  

    Default how work chart now

    how work chart now


    the chart interactive with gird cause overflow memory and crash firefox 4.

  7. #207
    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 abctenorio@gmail.com View Post
    the chart interactive with gird cause overflow memory and crash firefox 4.
    Sounds like something that you should report in the Bugs forum as a new thread with more info about what you're doing.

  8. #208
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    22
    Vote Rating
    0
    peet is on a distinguished road

      0  

    Question tree filtering - i can haz it?

    tree filtering - i can haz it?


    when i call:
    Code:
    		this.store.tree.filter(new Ext.util.Filter({
    			filterFn : testnode
    		}), true);
    where "this" is a TreePanel, I get:
    Code:
       filter: function(filters, recursive) {
            this.getRootNode().filter(filters, recursive);
    ext-all-debug.js:53117Uncaught TypeError: Object [object Object] has no method 'filter'
        }
    Is there a plan to implement this?

  9. #209
    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 peet View Post
    when i call:
    Code:
    		this.store.tree.filter(new Ext.util.Filter({
    			filterFn : testnode
    		}), true);
    where "this" is a TreePanel, I get:
    Code:
       filter: function(filters, recursive) {
            this.getRootNode().filter(filters, recursive);
    ext-all-debug.js:53117Uncaught TypeError: Object [object Object] has no method 'filter'
        }
    Is there a plan to implement this?
    Filtering is implemented at the store level, not the tree level. Try this.store.filter(...)

  10. #210
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    22
    Vote Rating
    0
    peet is on a distinguished road

      0  

    Exclamation neither "filter" nor "filterBy" are implemented on the TreeStore

    neither "filter" nor "filterBy" are implemented on the TreeStore


    Debugging leads me into the empty AbstractStore methods, so neither "filter" nor "filterBy" are implemented on the TreeStore. "filter" on the Tree is implemented but, unfortunately it calls a non-existent method on the node interface (see my previous post).

    Filtering trees is a cool feature and was prominent in the 3.x API docs (and my App) allowing easy searching for a Class. It was replaced by a combo box with suggestions, but the tree filtering was better IMHO. With larger structured datasets, it can be very helpful to see the filtered tree structure as the user is modifying that filter.

    Thanks for your help!

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)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar