Results 1 to 2 of 2

Thread: Instant number format

  1. #1

    Default Instant number format

    I was trying to implement a feature in my project to support formating number fields instantly while typing. But it seems like ExtJS only provides a format behavior after BLUR, and there isn't any config or other built-in approaches to get this done in Ext.util.Format.number.

    So I'm now trying to listen to a change event and manually do a formating. But the problem is, the logic seem complex, for example after every formating, I have to restore the curor positon: the cursor will be automatically shown at the end of the string. Especially in case of a format string '1,234.00'.

    Is there a easier way to do this?


  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Central Ohio



    The formatters do not support this 'live' feature that you're looking to implement. You'll need to build your own logic to handle this, which it appears to have done.


Similar Threads

  1. Replies: 4
    Last Post: 12 Aug 2013, 1:05 PM
  2. Replies: 3
    Last Post: 28 Nov 2012, 3:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts