-
29 Nov 2012 7:08 AM #1
Need to set MIn & Max value for xType - numberField
Need to set MIn & Max value for xType - numberField
Hi,
I have a xtype: 'treecolumn' with column xtype (numberfield).
{
xtype: 'numbercolumn',
header: 'PT-FirstMY',
dataIndex: 'ptFirstModelYr',
format: '0',
headerWidth: 100,
flex: 1,
editor: {
xtype : 'numberfield',
id : 'firstMYNumbFldAd',
allowBlank: false,
maxValue: 9999,
minValue: 1900
}
},
I have to chaneg the maxVlaue and minValue dynamically through function. Kindly help me on this,.
-
29 Nov 2012 2:15 PM #2
This is covered in the docs:
http://docs.sencha.com/ext-js/4-0/#!...od-setMinValue
http://docs.sencha.com/ext-js/4-0/#!...od-setMaxValueEvan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
29 Nov 2012 8:51 PM #3
Hi,
I tried using Ext.getCmp('firstMYNumbFldAd').setMinvalue(2000);
But this is not working Ext.getCmp('firstMYNumbFldAd') is returning undefined.


Reply With Quote