anoopc4u
3 Aug 2012, 1:56 AM
Hi all,
I am trying to limit the textFiels and numberFiels to some character in form panel.
After reading the forum I got some code like
autoCreate : { //restricts user to 20 chars max, cannot enter 21st char
tag: "input",
maxLength : 20,
type: "text",
size: "20",
autocomplete: "off"}
},
But it is not working for me, I am using ExtJS 4.1
while checking the ExtJS4.1 documentation am not able to see any config like autoCreate for textField/numberField but it is there in ExtJS 3.4.
Plse help me to find out autoCreate equalent in ExtJS 4.1
Thanks in advance.
AC
I am trying to limit the textFiels and numberFiels to some character in form panel.
After reading the forum I got some code like
autoCreate : { //restricts user to 20 chars max, cannot enter 21st char
tag: "input",
maxLength : 20,
type: "text",
size: "20",
autocomplete: "off"}
},
But it is not working for me, I am using ExtJS 4.1
while checking the ExtJS4.1 documentation am not able to see any config like autoCreate for textField/numberField but it is there in ExtJS 3.4.
Plse help me to find out autoCreate equalent in ExtJS 4.1
Thanks in advance.
AC