0 is displayed though the value is Null

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    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.

    <ext:GridPanel ID="GridPanelA"
        runat="server" ColumnLines="true" TitleCollapse="true"
        Region="Center" EnableColumnMove="false" EnableColumnHide="false">
            <ext:Store ID="StoreId" runat="server" PageSize="20">
                    <ext:Model runat="server">
                            <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" />
        <ColumnModel runat="server">
                <ext:Column runat="server" Text="GroupA">
                        <ext:Parameter Name="Sortable" Value="true" />
                        <ext:Parameter Name="Align" Value="Center" />
                        <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" />
            <ext:PagingToolbar runat="server">
            <ext:CheckboxSelectionModel runat="server" Mode="Multi" />
    Last edited by fabricio.murta; May 25, 2020 at 4:19 PM. Reason: convert attachment into code block

Similar Threads

  1. Replies: 2
    Last Post: Jun 16, 2016, 3:48 PM
  2. Replies: 1
    Last Post: Nov 07, 2013, 2:40 PM
  3. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  4. Replies: 1
    Last Post: Jun 08, 2010, 11:38 AM
  5. Replies: 0
    Last Post: Mar 05, 2010, 3:28 AM

Tags for this Thread

Posting Permissions