Nullable Datetime field not getting rendered in Store (Ext.Net)

  1. #1

    Nullable Datetime field not getting rendered in Store (Ext.Net)

    <ext:Store ID="StoreSample" runat="server" RemotePaging="true" RemoteSort="true" AutoLoad="true"
    ShowWarningOnFailure="false" > 
    <Proxy>
    <ext:HttpProxy Url="~/Samples/OpenEdit/GetSampleList" Json="true"> 
    </ext:HttpProxy>
    </Proxy> 
    <Reader>
    <ext:JsonReader IDProperty="Id" Root="data">
    <Fields>
    <ext:RecordField Name="Id" Type="Int">
    </ext:RecordField>
    <ext:RecordField Name="SampleDescription" Mapping="Description">
    </ext:RecordField>
    <ext:RecordField Name="SamplestartDate" Mapping="StartDate" Type="Date">
    </ext:RecordField>
    <ext:RecordField Name="SampleEndDate" Mapping="EndDate" Type="Date" >
    </ext:RecordField>
    </Fields>
    </ext:JsonReader>
    </ext:Store>
    In this store the fields SampleStartDate and SampleEndDate are of type Nullabe Datetime (Datetime?) in the model. In controller i am getting value for every field and i am converting this to StoreResult in the function GetSampleList. But in store i am always getting the value as 'undefined' in these two fields. But if i change the datatype from Datetime? to DateTime the in model i am getting all the values in store.Can any one help me to get the nullable datetime value in store?
    Last edited by geoffrey.mcgill; Apr 18, 2012 at 1:44 PM. Reason: please use [CODE] tags

Similar Threads

  1. Store Reader DateTime Parsing w/ milliseconds
    By Thinjon100 in forum 1.x Help
    Replies: 2
    Last Post: Nov 20, 2013, 10:03 AM
  2. [CLOSED] Nullable number field
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 02, 2010, 5:06 PM
  3. Replies: 5
    Last Post: May 13, 2010, 2:50 PM
  4. DateTime handling in Store
    By pschojer in forum 1.x Help
    Replies: 3
    Last Post: Aug 17, 2009, 1:22 PM
  5. [CLOSED] datetime field
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 11, 2009, 1:59 PM

Tags for this Thread

Posting Permissions