I am using ExtJS 4.1, and trying to display my currency field as value / 1000, but only on display.
For example, if user input 1234.56, it will appear as 1,234.56 on screen, but only when it is displayed on screen. For everything else, it is stored as 1234560. In every calculation behind that number is treated as 1234560. I am using bigint as store, and I want to avoid float, since in my country, 2 billion is a normal number, but will also need the fraction part.
How can you do that?
Thank you.
After playing around, I have another solution, one based on model.
Create a non-existent field, such as price_display, and use it to display;
on your grid or combo or anything use price_display instead of price. but when you want to perform a math, use price.