Webinput 4.0 removing decimals

10 replies. Last post: May 22, 2012 8:44 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi, I am experiencing an issue with WebInput 4.0 when using comma (,) as a decimal separator. I have tried with Danish (da-DK) and Swedish (sv-SE) locale, and both are displaying the same issue. I have tried to set the locale directly on the component as well as through web.config, this had no effect.

The issue is that when entering a decimal number, the decimals are replaced with zeroes and the separator is replaces with a dot (.). Please see attached file. All input boxes were loaded with values on pageload and all looked correct. After changing the value of the third input box to 4,44 (the format looks correct while in edit mode), the value displayed is 4 .00.

I use WebFlyPostBackManager to call a save function. When calling this function and accessing the value of the changed input box, the value is now nothing. If I use en-AU as locale everything works as expected. I declare the input box as per below:

<ISWebInput:WebInput ID="wiPenaltyInterestRate" runat="server"
                    Width="100%" DecimalSeparator=",">
                    <DisplayFormat Format="n" IsEnabled="True" Type="Number">
                    </DisplayFormat>
                    <ClientSideEvents OnAfterValueChanged="data_changed">
                    </ClientSideEvents>
                </ISWebInput:WebInput>

I have had multiple issues with WebInput 4.0 and have had to use version 3 until now, so I would really appreciate a solution to this problem.

Regards

Christian Luckow




1 attachment
All times are GMT -5. The time now is 7:30 PM.
Previous Next