[CLOSED] Currency Field which works as autonumeric js

  1. #1

    [CLOSED] Currency Field which works as autonumeric js

    Hello,

    My end-users really love the way that autonumeric.js create the currency box like in this url: http://autonumeric.org/

    Could you please show me how can I achieve exactly the same thing in ext.net mvc ?

    Thanks in advance.
    Last edited by fabricio.murta; Aug 09, 2022 at 1:14 PM.
  2. #2
    Hello @user2022!

    You want to use text field's input masks.

    Historically, Ext.NET implemented its own version of input masking. Later on the road, the underlying JavaScript framework behind Ext.NET, the Ext JS framework, implemented its own "native" masking.

    The following example shows the more recent input mask usage with Ext.NET MVC:

    - Form > Text Field > Input Mask (native) - MVC Examples Explorer

    There's the same example in WebForms; this would be useful to understand what's coming next:

    - Form > Text Field > Input Mask (native) - WebForms Examples explorer

    The example above shows how the syntax relates between WebForms and MVC, in light to tip how to translate the following WebForms example into MVC Razor syntax. It uses the older -- but somewhat more powerful -- Ext.NET specific implementation of input mask:

    - Form > Text Field > Input Mask PlugIn - WebForms Examples Explorer

    Maybe it's a good idea to start with the "native" version, for it is simpler. It should be able to handle most scenarios. If for one reason or another it doesn't suit your needs, then check out the "Plugin" version of the functionality. The change between them, syntax-wise, is basically how you activate and express the feature (via a "plugin" block, instead of properties in the actual component).

    If you try the "plugin" version of InputMask and are having trouble using it on MVC/Razor, check out this thread for a highlight:

    - What's the Razor syntax for InputMask

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello @fabricio.murta,

    All clear, thanks for your help, please close this thread.

Similar Threads

  1. [CLOSED] Currency field
    By susanz in forum 4.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 22, 2019, 9:37 PM
  2. Replies: 0
    Last Post: Feb 03, 2016, 1:22 PM
  3. [CLOSED] Currency Field
    By RCN in forum 3.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 26, 2015, 1:05 PM
  4. Replies: 24
    Last Post: Aug 06, 2012, 11:26 AM
  5. [CLOSED] [1.0] Currency field?
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 15, 2010, 4:27 AM

Posting Permissions