May 25, 2020, 8:14 AM
0 is displayed though the value is Null
We have implemented the grid list. The int value seems to be displayed as 0 though the data is null in the database(SQL server).
Are there any way to not display 0 when null other than changing to string value?
We are using EXT.net 4.8.3.
Are there any way to not display 0 when null other than changing to string value?
We are using EXT.net 4.8.3.
<ext:GridPanel ID="GridPanelA"
runat="server" ColumnLines="true" TitleCollapse="true"
Region="Center" EnableColumnMove="false" EnableColumnHide="false">
<Store>
<ext:Store ID="StoreId" runat="server" PageSize="20">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Float1" Type="Float" />
<ext:ModelField Name="Float2" Type="Float" />
<ext:ModelField Name="Int1" Type="Int" />
<ext:ModelField Name="Int2" Type="Int" />
<ext:ModelField Name="Int3" Type="Int" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" Text="GroupA">
<Defaults>
<ext:Parameter Name="Sortable" Value="true" />
<ext:Parameter Name="Align" Value="Center" />
</Defaults>
<Columns>
<ext:Column runat="server" ID="FloatA" Text="FloatA" DataIndex="Float1" Width="150" />
<ext:Column runat="server" ID="FloatB" Text="FloatB" DataIndex="Float2" Width="150" />
<ext:Column runat="server" ID="IntA" Text="IntA" DataIndex="Int1" Width="100" />
<ext:Column runat="server" ID="IntB" Text="IntB" DataIndex="Int2" Width="100" />
<ext:Column runat="server" ID="IntC"Text="IntC" DataIndex="Int3" Width="120" />
</Columns>
</ext:Column>
</Columns>
</ColumnModel>
<BottomBar>
<ext:PagingToolbar runat="server">
</ext:PagingToolbar>
</BottomBar>
<SelectionModel>
<ext:CheckboxSelectionModel runat="server" Mode="Multi" />
</SelectionModel>
</ext:GridPanel>
Last edited by fabricio.murta; May 25, 2020 at 5:19 PM.
Reason: convert attachment into code block