Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>JSON knows only two primitive datatypes: strings and numbers and no <code>Date</code> type. Data Contract Serializer supports <a href="http://msdn.microsoft.com/en-us/library/ms731923.aspx" rel="nofollow noreferrer">more types</a>. For example <code>DateTime</code>, <code>DateTimeOffset</code>, <code>TimeSpan</code>, <code>Guid</code>, <code>Uri</code>, <code>XmlQualifiedName</code>. If you send data to the client which use also Data Contract Serializer to deserialize the data you can use any from the datatypes without any problems.</p> <p>The most simple solution of your problem is preparing the data on the server before sending the data. If you will serialize only objects which has only strings and numbers as properties or arrays/<code>IList&lt;T&gt;</code> then you will has no problem. For example, per default jqGrid wait the data in the <strong>ISO Date format</strong>: <code>Y-m-d</code> with numbers for <code>Y</code>, <code>m</code> and <code>d</code>. If you convert your data on the server to the Y-m-d format and use <code>formatter:'date'</code> in the corresponding <code>colModel</code> definition your problem will be solved.</p> <p>You can also solve the problem on the client side using of the <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter" rel="nofollow noreferrer">custom formatter</a> and the <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter#unformatting" rel="nofollow noreferrer">custom unformatter</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload