[CLOSED] [2.2 Trunk] Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: layout.row

  1. #1

    [CLOSED] [2.2 Trunk] Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: layout.row

    I am trying to provide the code that produces this effect but it's related to rowlayout it looks like.
    Last edited by Daniil; Jun 18, 2013 at 4:59 AM. Reason: [CLOSED]
  2. #2
    Here is where it traps:
    instantiateByAlias: function() {
                var alias = arguments[0],
                    args = arraySlice.call(arguments),
                    className = this.getNameByAlias(alias);// <= this returns null and it shouldn't, alias is 'layout.row'
    
    
                if (!className) {
                    className = this.maps.aliasToName[alias];
    
    
                    if (!className) {
                        throw new Error("[Ext.createByAlias] Cannot create an instance of unrecognized alias: " + alias);//<= exceptions here
                    }
    
    
                    if (global.console) {
                        global.console.warn("[Ext.Loader] Synchronously loading '" + className + "'; consider adding " +
                             "Ext.require('" + alias + "') above Ext.onReady");
                    }
    
    
                    Ext.syncRequire(className);
                }
    
    
                args[0] = className;
    
    
                return this.instantiate.apply(this, args);
            },
  3. #3
    Hello!

    Quote Originally Posted by michaeld View Post
    I am trying to provide the code that produces this effect but it's related to rowlayout it looks like.
    Sorry, you say you have this issue with RowLayout but we don't have RowLayout in Ext.NET 2.x. We have it in Ext.NET 1.x. Did I misunderstand you?
  4. #4

    No RowLayout

    Ahh, that would explain it then.
    Last edited by michaeld; Jun 11, 2013 at 1:19 AM.
  5. #5
    Quote Originally Posted by michaeld View Post
    Ahh, that would explain it then.
    You can use VBoxLayout instead of RowLayout: https://examples2.ext.net/#/Layout/VBoxLayout/Rows/
  6. #6
    I have been. Not all of my code has been converted 100% from 1.0 but I wasn't aware RowLayout was gone since ColumnLayout is still there. But I get it now.
  7. #7
    However, though minor, there's more here to this issue. The extjs code still managed to convert RowLayout to layout.row. I'm assuming that comes from the legacy code from 1.0 or extjs 3.x. I'm not saying this needs to be fixed but it could save someone converting if it didn't do that. Layouts should match a select list.
  8. #8
    Quote Originally Posted by michaeld View Post
    but I wasn't aware RowLayout was gone
    Please note that there is the item #127 for this in BREAKING_CHANGES.txt.
    https://examples2.ext.net/#/Getting_...AKING_CHANGES/

    Quote Originally Posted by michaeld View Post
    However, though minor, there's more here to this issue. The extjs code still managed to convert RowLayout to layout.row. I'm assuming that comes from the legacy code from 1.0 or extjs 3.x. I'm not saying this needs to be fixed but it could save someone converting if it didn't do that. Layouts should match a select list.
    Just a Container's Layout property supports a custom layout to be set up.
    <ext:Container runat="server" Layout="CustomLayout" />

Similar Threads

  1. Replies: 3
    Last Post: May 15, 2013, 4:50 AM
  2. [CLOSED] [Trunk SVN] Summary Grid error
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 17, 2013, 11:48 AM
  3. [CLOSED] SVN 4741 Trunk Open Window Client Side Error
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 17, 2013, 12:21 AM
  4. Replies: 2
    Last Post: Dec 17, 2012, 4:00 AM
  5. Unrecognized tag prefix cool
    By JohnAitch in forum 1.x Help
    Replies: 4
    Last Post: Apr 22, 2008, 12:53 PM

Posting Permissions