Jun 02, 2010, 12:23 PM
[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
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>