[CLOSED] Nullable number field

  1. #1

    [CLOSED] Nullable number field

    Hello,

    in the following SelectBox, the field TargetMonth is an integer db nullable field. When the field has a null value, the SelectBox display it as "0" (I also noticed the same behavior for NumberField).
    I would like the field was displayed as an empty field. Is it possible?

    Thanks,
    Stefano

    
    
    
    
    <ext:SelectBox
    
    
    ID="cboMonth"
    
    
    DataIndex="TargetMonth"
    
    
    runat="server" 
    
    
    HiddenName="TargetMonth"
    
    
    FieldLabel="Mese"
    
    
    Editable="false"
    
    
    TypeAhead="true"
    
    
    AllowBlank="false"
    
    
    AnchorHorizontal="100%" Mode="Local"
    
    
    LabelWidth="50"
    
    
    ColumnWidth=".30">
    
    
    <Items>
    
    
    <ext:ListItem Text="Gennaio" Value="1" />
    
    
    <ext:ListItem Text="Febbraio" Value="2" />
    
    
    <ext:ListItem Text="Marzo" Value="3" />
    
    
    <ext:ListItem Text="Aprile" Value="4" />
    
    
    <ext:ListItem Text="Maggio" Value="5" />
    
    
    <ext:ListItem Text="Giugno" Value="6" />
    
    
    <ext:ListItem Text="Luglio" Value="7" />
    
    
    <ext:ListItem Text="Agosto" Value="8" />
    
    
    <ext:ListItem Text="Settembre" Value="9" />
    
    
    <ext:ListItem Text="Ottobre" Value="10" />
    
    
    <ext:ListItem Text="Novembre" Value="11" />
    
    
    <ext:ListItem Text="Dicembre" Value="12" />
    
    
    </Items>
    
    
    </ext:SelectBox>
  2. #2

    RE: [CLOSED] Nullable number field

    Hi,

    Please provide test sample which demonstrates the problem. It seems that you set '0' to the SelectBox


    NOTE: Marked as [CLOSED] as no new information has been provided by original poster. Please feel free to update in the future.


    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 0
    Last Post: Apr 18, 2012, 8:08 AM
  2. [CLOSED] Number Field
    By Vasudhaika in forum 1.x Premium Help
    Replies: 19
    Last Post: Jul 19, 2011, 9:59 AM
  3. [CLOSED] Number Field
    By majestic in forum 1.x Premium Help
    Replies: 3
    Last Post: Jan 05, 2011, 1:21 PM
  4. [CLOSED] Number field Error
    By pil0t in forum 1.x Premium Help
    Replies: 3
    Last Post: Jun 22, 2010, 6:42 AM
  5. Number Field
    By fabiomarcos in forum 1.x Help
    Replies: 2
    Last Post: Jan 20, 2009, 12:29 PM

Posting Permissions