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. #101
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Quote Originally Posted by pcr View Post
    Ed Spencer promised to include a desktop example in ExtJS 4.0. And yes he did. Very nice. Now I tried to migrate the Desktop from ExtJS 3.3.1 into ExtJS 4.0. In the ExtJS 4.0 HTML example 1 file is used that combines all *.js files. This file is minified. Not all javascript files in the classes.js are present as separate unminified files. Now its impossible for me to migrate the desktop.

    Please mister Spencer put the missing unminified files or the unminified classes.js in the example Desktop.

    Thanks
    I'll ask Don (who wrote the new desktop) to provide unminified files for the next release
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  2. #102
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,387
    Vote Rating
    139
    dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold

      0  
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  3. #103
    Sencha User
    Join Date
    Apr 2011
    Posts
    1
    Vote Rating
    0
    qqjianyue is on a distinguished road

      0  

    Question AccordtionLayout setActiveItem migration

    AccordtionLayout setActiveItem migration


    As you know, in Extjs3.3.1 accordtionLayout support "setActiveItem" method to programmatically update active component.
    But in extjs4.0, similar feature can not be found from API DOC,
    Can anyone provide with a way to achieve this function.

  4. #104
    Sencha User
    Join Date
    May 2011
    Posts
    26
    Vote Rating
    1
    Reggae is on a distinguished road

      0  

    Default how to migrate the the >itemTpl: < config for Panels.

    how to migrate the the >itemTpl: < config for Panels.


    Hi,

    i have a custom Desktop built under Ext 3 which uses customized Panel-Tab's. The customizing is done with the >itemTpl: < config for the panel. This config-Option does not longer exist in ExtJs 4. How to migrate it?
    Code:
    		var config = {
    			border: false,
    			cls: 'MyApp-UserInterface-SectionMenu',
    			items: this._getSectionMenuItems(),
    			itemTpl: new Ext.XTemplate('<li class="{cls}" id="{id}"><a class="x-tab-strip-close"></a>',
                     '<a class="x-tab-right" href="#"><em class="x-tab-left">',
                     '<span class="x-tab-strip-inner"><span class="x-tab-strip-text {iconCls}">',
    				 // Begin Modification, added iconWrapper
    			     '<span class="iconWrapper"></span>',
    				 // End Modification
    				 '{text}</span></span>',
                     '</em></a></li>')
    		};

  5. #105
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    5
    Vote Rating
    0
    freeranger is on a distinguished road

      0  

    Question cell editing

    cell editing


    Hi,

    Now that the column model is gone, does anyone know what the replacements are for colModel.isCellEditable and colModel.getCellEditor?

    Docs aren't helping, google isn't helping, the migration guide isn't helping

    thanks

  6. #106
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,369
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    @freeranger:
    Individual columns have a getEditor method and an editable property:
    http://dev.sencha.com/deploy/ext-4.0...n.Column.html#
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  7. #107
    Ext JS Premium Member
    Join Date
    Feb 2011
    Posts
    5
    Vote Rating
    0
    freeranger is on a distinguished road

      0  

    Default


    hi,

    Thanks for the reply.

    There is no editable property on the Column - or if there is, the documentation makes no mention of one.?

    I need to loop around all the rows and columns in a grid and if the fields are editable, I want to validate them. The methods I was using took row and col params.
    How can I translate this into the v4 way of doing things, where getEditor takes a record and a default field? I have to say, I am really struggling with converting to v4 - the migration guide seems rather...lacking, so it's only by hunting around and guessing and trying things out that I'm making any progress

    thanks

  8. #108
    Sencha User
    Join Date
    Dec 2008
    Location
    Manchester, UK
    Posts
    112
    Vote Rating
    8
    LisburnLad will become famous soon enough

      0  

    Default Problems setting tree node icons

    Problems setting tree node icons


    I'm in the process of converting my app from V3 to V4 - so far, thanks to the webcasts and compatibility layer, this has gone pretty smoothly. However, I've now tried to get my tree up and running and I'm stumped (no pun intended!).

    Previously my tree used a TreeLoader to get the tree data from the server, and once this was complete, the TreeLoader's 'load' event was used to set the style of the node to make it use the correct part of a sprite as its icon:


    Code:
     
    CategoryTreeLoader.on("load", function (treeLoader, node)
    {
      node.setIconStyle('background-position: ' + node.attributes.iconPos + ';');
    }

    Now, in version 4, it appears that the TreeLoader no longer exists, so I've moved to using a
    'Ext.data.TreeStore'. This returns me the data for the tree and the tree itself is created, however I can't see how I can get access to the individual nodes to set their CSS style (the 'load' event of a TreeStore doesn't seem to contain the node).

    Unfortunately the current help page about tree's (http://dev.sencha.com/deploy/ext-4.0.0/docs/guide/tree.html) contains "TODO: icon and iconCls", so I'm stuck. If anyone can help it would be much appreciated.

    Ta,
    Steve

  9. #109
    Sencha User
    Join Date
    Jan 2009
    Posts
    19
    Vote Rating
    0
    Luckyman is on a distinguished road

      0  

    Default


    Quote Originally Posted by MuadDib-DK View Post
    First of all thank you for the migration guide! It got me a long way, but I am now stuck with a proxy problem that I can't seem to find a solution to...

    I get the following error in firebug:

    msg: "You are using a ServerProxy but have not supplied it with a url."
    sourceClass: "Ext.data.proxy.Server"
    sourceMethod: "buildUrl"

    We use a lot of Ext.Ajax.request calls, are they the problem? And what can I do to fix the problem?
    The problem is in the use of JsonStore.
    In JsonStore constuctor we have following code
    Code:
      constructor: function(config) {
            config = config || {};
    
            Ext.applyIf(config, {
                proxy: {
                    type  : 'ajax',
                    reader: 'json',
                    writer: 'json'
                }
            });
    
            this.callParent([config]);
        }
    In compat file we have following sequence function
    Code:
      constructor: Ext.Function.createInterceptor(Ext.data.AbstractStore.prototype.constructor, function(config) {
                    if (this.$className == 'Ext.data.NodeStore') {
                        return;
                    }
                    if (config.url) {
                        deprecate({pkg:'Ext.data.Store', member:'url', type:'config', alt:'proxy.url',
                            msg:'The store\'s "url" config should now be passed as a config to a valid remote-style proxy.'});
    
                        if (!config.proxy) {
                            deprecate({pkg:'Ext.data.Store', msg:'A store url was specified with no proxy config. Implcitily creating an AjaxProxy with that url. '+
                                'Please see the header docs for Ext.data.Store for details on properly setting up your data components.'});
                            
                            config.proxy = {
                                type: 'ajax',
                                url: config.url
                            };
    As you can see Store created with proxy but without url property in proxy config and compat file didn't resolve the issuie, because not overwrite exist proxy object.
    my temp solution is
    Code:
    Ext.override(Ext.data.JsonStore, {
        constructor: function(config) {
            config = config || {};
    
            Ext.applyIf(config, {
                proxy: {
                    url   : config.url,
                    type  : 'ajax',
                    reader: 'json',
                    writer: 'json'
                }
            });
    
            this.callParent([config]);
        }
    
    });

  10. #110
    Sencha User
    Join Date
    Jan 2009
    Posts
    19
    Vote Rating
    0
    Luckyman is on a distinguished road

      0  

    Default find in component methods

    find in component methods


    In compat file missing find methods
    Something like this:
    Code:
    Ext.override(Ext.AbstractComponent, {
        find : function(attributeName, attributeValue){
            return Ext.ComponentQuery.query('component['+attributeName+'="'+attributeValue+'"]', this)
        },
        findByType: function(xtype){
            return Ext.ComponentQuery.query(xtype, this);
        }
    });

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)