[CLOSED] Problems after SVN update - the dreaded "undefined" error has come back to haunt me

Page 2 of 2 FirstFirst 12
  1. #11
    Hi,

    I reproduced the issue using the sample below.

    SpinnerField with .FieldLabel causes the "p.init is not a function" error in the following script.
    initPlugin : function(p){
        if(p.ptype && !Ext.isFunction(p.init)){
            p = Ext.ComponentMgr.createPlugin(p);
        }else if(Ext.isString(p)){
            p = Ext.ComponentMgr.createPlugin({
                ptype: p
            });
        }
        p.init(this);
        return p;
    }
    If remove FieldLabel, works fine.

    Also it works fine with FieldLabel under Ext.Net RC1.

    We are investigating the bug, and will back with a fix.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:SpinnerField runat="server" FieldLabel="FieldLabel" />
        </form>
    </body>
    </html>
  2. #12
    Vladimir has added the fix on this.

    Please update to revision #3523 and re-test.
  3. #13
    Thanks! That was quick, as usual. I will take a look =)
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [CLOSED] Problems when usin "Content" instead of "Items"
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 24, 2012, 1:43 PM
  2. Replies: 4
    Last Post: Apr 29, 2011, 6:49 PM
  3. Replies: 6
    Last Post: Apr 28, 2011, 11:52 AM
  4. Replies: 9
    Last Post: Apr 25, 2011, 8:23 PM
  5. Replies: 14
    Last Post: Apr 12, 2011, 2:49 PM

Tags for this Thread

Posting Permissions