Sep 01, 2008, 12:21 PM
[CLOSED] DateFormat on store?
For some reason, I can't seem to get DateFormat on a store to work right:
Note, this isn't just for my grid, but also for a textbox that I'm filling with the data. If I use DateFormat, both the grid, and my field, don't show the data.
<ext:RecordField Name="NoteId" Type="Int" />
<ext:RecordField Name="Username" />
<ext:RecordField Name="ShowOnTrackingSheet" Type="Boolean" />
<ext:RecordField Name="Updated" Type="Date" DateFormat="dd/mm/YYYY"/>
<ext:RecordField Name="ShortText" />
<ext:RecordField Name="NoteText" />
The dateFormat property IS being written out:{dateFormat:"d/i/YYYY",type:"date",name:"Updated"}
But the store isn't loading data into those fields. The field comes out in Firebug as "undefined", even though the data is coming back on the JSON request. If I remove DateFormat, it works fine... but obviously shows the wrong date format.Note, this isn't just for my grid, but also for a textbox that I'm filling with the data. If I use DateFormat, both the grid, and my field, don't show the data.