Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1706
Decimal column without trailing zeros when editing (Infragistics 2013 Volume 1)
posted

Is there a way to have a decimal column that does not display the trailing zeros when editing a value?

I tried changing the Editor to an UltraNumericEditor but it keeps including mask characters and a $ that I do not want.

I just simply want the raw decimal number without the trailing zeros.

I see in the past it has been said that it is not possible, without some funky workarounds at which point it would be better to just force the column type to be double.  (This will also be a pain for me).

Note that I am using currently Infragistics 2013 Volume 1.

I appreciate any help that is offered.
Thank you.

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi,

     

    Thank you for posting in our forums.

     

    By default the grid won’t show any trailing zeros when editing even if the column is decimal type. I have attached a small sample project. Notice that when you edit the Price column (which is of type Decimal) no trailing zeros are shown. What settings are applied to the decimal column in your application? Have you specified MaskInput or Format for the column?

     

    Please provide me with a sample which reproduces this and I will be glad to research it further. You can use my sample as a starting point.

     

    I am looking forward to hearing from you.

    WG_EditWithNoTrailingZeros.zip
Children