Apr 13, 2011, 12:29 PM
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.
Also it works fine with FieldLabel under Ext.Net RC1.
We are investigating the bug, and will back with a fix.
Example
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>