Bug Report T623796
Visible to All Users

NumberBox - Standard formats incorrectly work when Globalize is included

created 7 years ago (modified 7 years ago)

Hello,

In my angular CLI project I want to know how can I format dxNumberBox with unlimited decimals (fractional part).

According to documentation If we specify "##.###" number box allows only 3 numbers after decimal point. (ex. 12.365689…)

I dont want to fixed the decimals part. I want to give free hand to client.

As I should specify format to to achieve globalization. (ref. T612811)
Does dxNumberbox allows regular expression for formatting ? (off course which should support Globalization. I have german and English clients)

Regards
Naresh

Answers approved by DevExpress Support

created 7 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 7 years ago

    Hi,

    You can use the standard "decimal" format (see Object Structures Format) to avoid an explicit limit for decimal points. I hope this information helps.

    Thanks,
    Alessandro

      Comments (2)
      NM NM
      Naresh Mesineni 7 years ago

        Hello Alessandro,

        Thanks for your reply.

        I have tried with using decimal format…dont know why editor not accepting decimal separator(English = .  German ,)
        Here is my html code

        HTML
        <dx-number-box type="number" format="decimal" class="numberAlign" [(ngModel)]="value" [readOnly]="readOnly" (onFocusOut)="onFocusOut($event)" (onValueChanged)="onValueChanged($event)" (onKeyUp)="onKeyUp($event)" step=0 width="100%" height="100%" [validationError]="validationError"> </dx-number-box>

        any reason ?

        Regards
        Naresh

        Alessandro (DevExpress Support) 7 years ago

          Hi,

          We were able to replicate this issue locally. I will forward this ticket to our R&D team for further research. Thank you for your time and cooperation.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.