Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Locales with Numbers #3041


User avatar
0
domernik created

Hello there, I am using AspNet Zero (with jquery) and I came to some problems caused by decimal inputs. I think it is more boilerplate-related than aspnet Zero.

  1. When I use a jtable with a column that is a decimal, it always displays with . as digit separator (even with german locale)
  2. When I use a EditorField for a decimal the input is correct - it shows the correct separator of the locale...but how can I get this value into a json object as a double? I cannot use the .val() method because this would only work on cultures with . as separator.

Is there something like abp.localization.currentCulture.parseFloat ?

Kind regards


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Currently ABP and AspNet Zero does not provide client side functionality for localizable number operations. You can create an issue in ABP for this. I think it will be a good feature.

    In the mean time, you need to handle it by yourself. With a quick search I have found this library <a class="postlink" href="http://numeraljs.com/">http://numeraljs.com/</a> and it seems like a good one.

    Thanks.