Jan 28, 2015, 9:35 AM
[CLOSED] Wrong Data in Grid
Hi all
I got a Problem while displaying in Number with 16 Decimals in the Grid !
See my Example...
The Number '9999999999999999' shows as '10000000000000000' in the Grid !?
Btw: We can't change the current Ext.Net Version (2.5.2.10682) at this Moment !
Peter
I got a Problem while displaying in Number with 16 Decimals in the Grid !
See my Example...
The Number '9999999999999999' shows as '10000000000000000' in the Grid !?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Grid9999.aspx.cs" Inherits="ExtNetForumTest.Grid9999" %>
<!DOCTYPE html>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
GridPanel1.Store.Primary.DataSource = new object[]
{
new object[] { 1111 },
new object[] { 9999999999999999 },
new object[] { 10000000000000000 }
};
GridPanel1.Store.Primary.DataBind();
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" />
<ext:GridPanel ID="GridPanel1" runat="server" DisableSelection="true" Width="600" Height="350">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="decimalCol" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column ID="colGrossMass" DataIndex="decimalCol" Text="Mass" Width="200" runat="server" />
</Columns>
</ColumnModel>
<View>
<ext:GridView runat="server" StripeRows="true" />
</View>
</ext:GridPanel>
</form>
</body>
</html>
Any Idea ? Btw: We can't change the current Ext.Net Version (2.5.2.10682) at this Moment !
Peter
Last edited by Daniil; Feb 03, 2015 at 2:12 PM.
Reason: [CLOSED]