It seems very easy to force the decimal to some precision and their are many ways.I have tried using all as:
1st way : Using config
xtype: 'numberfield',
fieldLabel: 'Balance',
name: 'balancefield',
decimalPrecision:2
Alternative : by overrriding or extending as shown here
Or using regular expressions
All of these work on blur or some other event or function.Is their a way to stop the input after two decimals. In textfields we can use RegEx and maskRe configs.But in numberfield,is their anything like maskRe,so that user cannot enter the more than two decimals. Any help is appreciated.Thanks.