[CLOSED] NumberField

  1. #1

    [CLOSED] NumberField

    hi,

    The NumberField does not allow zero value, it shows the error mask, if i enter zero value.. i want to allow the 0 value in NumberField ..



     
    <ext:NumberField ID="clnrfAutoDelarLimit" runat="server" EnableKeyEvents="true" DecimalPrecision="2" MinValue="0" AllowNegative="false" 
    DecimalSeparator="." MaxLength="7" BlankText="Auto dealer limit is required" InvalidText="Invalid value" >
    
    </ext:NumberField>
    Last edited by geoffrey.mcgill; Jul 19, 2010 at 10:22 PM.
  2. #2
    Hi,

    For me the NumberField appears to function correctly. Please provide a code sample which demonstrates how to reproduce, and/or modify the following sample to demonstrate the issue.

    Example

    <%@ Page Language="C#"  %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Button1_Click(object sender, DirectEventArgs e)
        {
            X.Msg.Notify("Value", this.NumberField1.Number.ToString()).Show();
        }
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
    <form runat="server">
        <ext:ResourceManager runat="server" />
    
        <ext:FormPanel runat="server" Title="Example" Height="215" Width="350" Padding="5">
            <Items>
                <ext:NumberField
                    ID="NumberField1"
                    runat="server"
                    FieldLabel="Test"
                    EnableKeyEvents="true"
                    DecimalPrecision="2"
                    MinValue="0"
                    AllowNegative="false"
                    DecimalSeparator="."
                    MaxLength="7"
                    BlankText="Auto dealer limit is required"
                    InvalidText="Invalid value"
                    />
            </Items>
            <Buttons>
                <ext:Button runat="server" Text="Submit" OnDirectClick="Button1_Click" />
            </Buttons>
        </ext:FormPanel>
    </form>
    </body>
    </html>
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] numberfield
    By majestic in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 05, 2012, 1:09 PM
  2. [CLOSED] [1.0] NumberField
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 28, 2010, 7:15 PM
  3. [CLOSED] NumberField +/- with $
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 25, 2010, 10:31 PM
  4. [CLOSED] [1.0] NumberField
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 15, 2010, 8:44 PM
  5. [CLOSED] [1.0] NumberField
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 07, 2010, 2:35 PM

Posting Permissions