PDA

View Full Version : Need to set MIn & Max value for xType - numberField dynamically



srisaravananwt
29 Nov 2012, 7:09 AM
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,.

vietits
29 Nov 2012, 6:01 PM
Try to use <numField>.setMaxValue() & <numField>.setMinValue().

srisaravananwt
29 Nov 2012, 8:52 PM
Hi,

How to get this <numField>?

vietits
30 Nov 2012, 12:24 AM
<numField> is your number field. How to get it is depend on where do you want to access it.