-
9 Jul 2012 2:02 AM #1
How to Remove Red Boundary on Numberfield
How to Remove Red Boundary on Numberfield
Dear all,
Ther is a form containing a numberfield as follow:
The problem is I oon't know why there is a red boundary on the field by default. Normally, the validation should be done after blur. I have add the validateOnBlur: true to ensure such action, but unfortunately, the problem is still remain.Code:{ xtype:'numberfield', fieldLabel:'Latitude', name:'lat', allowBlank:false, width : 150 }
How to fix that? I really appreciate any solutions.
Thanks in advance.
Best regards,
zaki
-
9 Jul 2012 2:47 AM #2
Okay
Okay
Okay, the solution is just by adding
. And the red boundary is not displayed initially. But the invalid mark did not displayed at all, even when the field is empty. I've tried to addingCode:preventMark : true
, but the invalid mark is still dissappeared.Code:validateOnBlur: true
How to fix that?
Thanks in advance.
-
9 Jul 2012 2:50 AM #3
Hi!
Your code is working fine for me, see this:-
numberfield.png
Can you be more specific, i guess problem is in your form panel.
give your full form panel code and screen shots to better understanding your problem.sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.


Reply With Quote