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
90
WebNumericEditor value does not have correct decimal numbers
posted

Hi,

I am using the WebNumericEditor on a form to add/edit some data. My problem is the editing part. If i create a new entry with "2.3" as value, it's stored correctly within the database. If i want to edit this entry, the form shows the value "2.0". I checked everything and i finally made a simple site to test the control itself:

Sample.aspx:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="_Default" StylesheetTheme="Intranet" Codebehind="Samples.aspx.cs" %>
<%@ Register assembly="Infragistics4.Web.v14.1, Version=14.1.20141.1015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.EditorControls" tagprefix="ig" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div style="padding-top: 20px; padding-bottom: 20px;">
        <asp:Button ID="Button1" runat="server" Text="Test Excel Export"
            onclick="TestOnClick" />
    </div>

    <ig:WebNumericEditor ID="MyWebNumericEditor" runat="server" />

</asp:Content>

Code Behind:

    protected void Page_Load(object sender, EventArgs e)
    {
        Title = "Test";

        this.MyWebNumericEditor.ValueDecimal = 2.3m;
        //this.MyWebNumericEditor.DataMode = NumericDataMode.Decimal;
    }
    
Generated inner HTML (from IE Dev. Toolbar):
 
    <INPUT id=ctl00_ContentPlaceHolder1_MyWebNumericEditor_clientState value=|0|013.30|| type=hidden name=ctl00_ContentPlaceHolder1_MyWebNumericEditor_clientState>
    <INPUT style="TEXT-ALIGN: right; IME-MODE: disabled" id=ctl00_ContentPlaceHolder1_MyWebNumericEditor class="igte_Office2007SilverEdit" title=3.00 value=3.00 alt=3.00 type=text name=ctl00_ContentPlaceHolder1_MyWebNumericEditor _editID="-1">
   

The control shows the value "3.00", but i want it to display "3.20".

Any idea whats wrong? I tried to set different DataModes and different values (ValueDecimal, ValueDouble, ValueText ...). I am testing with IE8, but IE11 does show the same problem.

We recently switched from Infragistics 13.1 to 14.1, maybe something to do with that?

Any help would be much appreciated!