-
20 May 2012 10:55 PM #1
Unanswered: Numberfield error - sencha 2
Unanswered: Numberfield error - sencha 2
Hi,
I am using sencha 2 mvc. and Iam having some issues when using
When I enter a value it is displayed, but when I click mouse out, and then click inside the field, it disappears and cant edit then on. What is the problem, I tried for many days, and couldn't find it..Please help me...Also I want to decrease the height of numberfield box, but how to?Code:xtype:'numberfield', name:'testfee', id:'testfee', width:50, minValue:1, maxLength:10
Please some one help me
-
21 May 2012 2:18 AM #2
-
21 May 2012 2:44 AM #3
I just gave this:
xtype:'numberfield',
name:'testfee',
id:'testfee',
width:50,
minHieght:5
But again when entered value, clicked mouse outside and then inside , it clears and default to 0 every time.
-
21 May 2012 2:46 AM #4
Ext.create('Ext.form.Panel', {
fullscreen: true,
items: [
{
xtype: 'fieldset',
title: 'hiii',
items: [
{
xtype:'numberfield',
name:'testfee',
id:'testfee',
width:50,
minHieght:5
}
]
}
]
});
This is working fine...check if in controller u are setting and reseting..
-
21 May 2012 2:52 AM #5
May be my structure is like this:
{
xtype:'fieldset',
id:'buying',
items:[
{
xtype:'selectfield',
...........
......},
{
xtype:'panel',
id:'boxclosing',
width:305,
hidden:true,
items:[
{
xtype:'numberfield',
name:'testfee',
id:'testfee',
width:50,
minHieght:5
//minValue: 1,
//maxValue: 10,
}]
}]
On selecting the selectbox, I show the number field
-
21 May 2012 2:54 AM #6
seems to be fine..
-
21 May 2012 2:55 AM #7
, Anyways, thanks for your response 


Reply With Quote