[CLOSED] NumberField gives null in postback if entered value equals MinValue

  1. #1

    [CLOSED] NumberField gives null in postback if entered value equals MinValue

    Hi,

    We have a definition in our form for a number field:

    <ext:NumberField ID="ChannelNumberBox" runat="server" FieldLabel="Channel Number" EnableKeyEvents="true" IsRemoteValidation="true" AllowBlank="false" AllowDecimals="false" AllowNegative="false" MaxValue="99999" MinValue="1" >
                                    <RemoteValidation Url="ChannelServices.asmx/CheckChannelNumber" Json="true">
    The number validation on client side works well but on PostBack, if the field value equals "1" (which is the MinValue) the text and value properties on the serverside show empty and null values appropriately.

    We're using ExtJS 1.3.
    Our workaround is to check if null than it must be the minvalue (as the maxvalue is postedback ok).

    Can you check this out and fix for later versions?
    Last edited by Daniil; Jul 31, 2012 at 8:58 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    Please use the Number property instead of the Text and Value ones.

Similar Threads

  1. [CLOSED] NumberField MinValue return null value
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 22, 2012, 1:10 PM
  2. [CLOSED] ext:NumberField clears to blank on blur (when 0 is entered)
    By jthompson in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 09, 2011, 10:44 PM
  3. DateTime.MinValue serialized as null
    By nextSTEP in forum 1.x Help
    Replies: 3
    Last Post: Mar 11, 2011, 5:46 PM
  4. [CLOSED] Numberfield already null
    By ppettigrew in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 16, 2010, 4:14 PM
  5. [CLOSED] NumberField MinValue Problem
    By majestic in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2010, 3:04 PM

Tags for this Thread

Posting Permissions