Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    This possible? Format integer as-you-type (like masking)

    Hello, I wonder if the following is possible, it might be a bit far-fetched.

    Assume I have a ListGridField of type="integer".

    I would like to auto-mask this, like the mask-examples with the correct locale.

    ie. if someone is typing:

    1,000,000

    either WITH the ',' (if he prefers to type the comma's)
    or WITHOUT (if he prefers to just type 1000000)

    In both cases I would like the field to be formatted like 1,000,000 as-he-types. If this is not possible, i am fine with allowing only '1000000' as input, and as-he-types the commas are added on the correct places.

    Do we need a mask that changes as-he-types, depending how large the number is? Is the mask programmatically changeable?

    Any hints in the good direction would be awesome. It's just a nice-to-have thing in my app :-)

    (ps. using SmartGWT Power 2.4)
Working...
X