[CLOSED] numberfield

  1. #1

    [CLOSED] numberfield

    hi,

    i got an number field value =-1.79769313486232E+308 when i make it is an empty in number field Textchage event.

    first set some value in number field after that you make it is empty, at that time textchange event fires and shows number field value -1.79769313486232E+308.

    how i can solve this issue
    Last edited by Daniil; Aug 08, 2011 at 1:23 PM. Reason: [CLOSED]
  2. #2

    -1.79769313486232e+308

    hi,

    i got an number field value =-1.79769313486232E+308 when i make it is an empty in number field Textchage event.

    first set some value in number field after that you make it is empty, at that time textchange event fires and shows number field value -1.79769313486232E+308.

    how i can solve this issue.
  3. #3

    numberfield empty

    And also when i clear the numberfield value i got the value -1.79769313486232e+308 even i use the code clnrfAdjustment.SetRawValue("").
    how i can make the empty number field value. i used the latest dll...
  4. #4
    Hi,

    Please re-format the posts removing [font] and [size] tags.
    Last edited by geoffrey.mcgill; Feb 07, 2015 at 12:55 AM.
  5. #5

    numberfield

    hi,

    i got a number field value =-1.79769313486232E+308 when i make it is an empty in number field Textchage event.

    first set some initial value in number field after that you can make it is empty, at that time textchange event fires and shows number field value -1.79769313486232E+308.

    how i can solve this issue.


    And also when i set the empty value in the numberfield i got the value -1.79769313486232e+308 even i use the code clnrfAdjustment.SetRawValue("").

    how i can set the number field value empty . i used the latest dll...
  6. #6
    Hi,

    Please investigate the post about the .EmptyValue property.
    http://forums.ext.net/showthread.php...ll=1#post61368
  7. #7

    Number field

    hi,

    please check below sample, i am not able to make empty number field value.



    <%@ Page Language="C#" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <script runat="server">
     
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lblid.Text = txtbox.Text;
            }
        }
        protected void txtbox_TextChanged(object sender, Ext.Net.DirectEventArgs e)
        {
            txtbox.Text = string.Empty;
            txtbox.SetRawValue("");
            lblid.Text = txtbox.Text;
        }
    </script>
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
       
                <ext:ResourceManager ID="ResourceManager1" runat="server" />
              
                <ext:NumberField runat="server" ID="txtbox" >
                <DirectEvents>
                <Change OnEvent="txtbox_TextChanged">            
                </Change>
                </DirectEvents>
                </ext:NumberField>
                <ext:Label runat="server" ID="lblid"></ext:Label>
        </div>
        </form>
    </body>
    </html>
  8. #8
    Please provide more details.

    I run the page you posted, type a number, then "blur" and the NumberField is empty.
  9. #9
    Another solution that found to me is that

    numberfieldName.Clear();
    Last edited by Daniil; Jul 05, 2012 at 2:18 PM. Reason: Please use [CODE] tags

Similar Threads

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

Posting Permissions