[CLOSED] Ext.NET v1.3 JSON Serialize Problem

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Ext.NET v1.3 JSON Serialize Problem

    Hi,

    I upgraded my MVC application to v1.3 and I compiled Ext.NET MVC dll with Ext.NET 1.3 dll's.
    But I found an issue with JSON.Serialize method of version 1.3, I attach the example.

    I return an AjaxStoreResult with data that contains nullable datetime and when it isn't null and have data, Serialize converts it to an strange string format similar to a timestamp and not an ISO date.

    Click image for larger version. 

Name:	Store Data.jpg 
Views:	126 
Size:	99.3 KB 
ID:	3890
    Click image for larger version. 

Name:	Serialize.png 
Views:	150 
Size:	86.2 KB 
ID:	3889

    It's a known bug?
    Last edited by Daniil; Mar 06, 2012 at 9:50 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report.

    The bug ticket has been created.
    https://extnet.lighthouseapp.com/pro...gs/tickets/251

    The fix has been committed to SVN, revision #3853.
  3. #3
    Hi, with revision 3854 BaseScriptBuilder crash before I can test fix do it in revision 3853.
    It seems that commit 3852 do something that is not contempled.

    I attach image with error debug info:
    Click image for larger version. 

Name:	BaseScriptBuild Crash.png 
Views:	100 
Size:	86.6 KB 
ID:	3898

    The problem is roweditor plugin hasn't got debug path defined.
  4. #4
    Thanks for the report.

    Fixed, revision #3855. Please update.

    Apologize for the inconvenience.
  5. #5
    Ok, revision 3855 works fine.

    Are you going to update the public v1.3 dll with this fixes?
  6. #6
    No, it will appear in v1.4 only.
  7. #7
    Ok, thanks
  8. #8
    Hi again, commit #3856 affects me in initial problem of nullable dates?
  9. #9
    Yes, I think you need this commit. The related thread:
    http://forums.ext.net/showthread.php?17639
  10. #10
    Here is my test case, both dates are rendered the same
    <%@ Page Language="C#" %>
      
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    
    <script runat="server">
        public class Test1
        {
            public DateTime? Date
            {
                get;
                set;
            }
        }
    
    
        public class Test2
        {
            public DateTime Date
            {
                get;
                set;
            }
        }
        
        protected void Page_Load(object sender, EventArgs e)
        {
            var s1 = JSON.Serialize(new Test1 { Date = DateTime.Now });
            var s2 = JSON.Serialize(new Test2 { Date = DateTime.Now });
    
    
            Label1.Text = s1;
            Label2.Text = s2;
        }
    </script>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Label ID="Label1" runat="server" />
            <br />
            <ext:Label ID="Label2" runat="server" />
        </form>
    </body>
    </html>
    Can you provide own test case?
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] json deserialize problem
    By albayrak in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 21, 2015, 2:28 PM
  2. JSON Serialize lost properties
    By marcelorosait in forum 1.x Help
    Replies: 5
    Last Post: Apr 17, 2012, 8:42 PM
  3. Replies: 0
    Last Post: Dec 02, 2011, 12:23 AM
  4. [CLOSED] How to Json.Serialize a DataTable
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 28, 2011, 4:21 PM
  5. [1.0] - JSON Serialize DateTime Request
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 26, 2010, 1:56 PM

Tags for this Thread

Posting Permissions