PDA

View Full Version : Help needed : json file + date in grid



tyfab
6 Mar 2012, 10:39 PM
HI

I have this simple Json :

{ success: true, row : [ { "datedebut":"2012-05-12 00:00:00" }, { "datedebut":"2012-05-12 00:00:00" }, { "datedebut":"2012-05-12 00:00:00" },]}

that I would like to put in a designer 2 grid, it's working with everything except date .. can somebody send here a designer 2 xds file with a grid that display this json ?

Thanks

Fabrice

tyfab
7 Mar 2012, 4:32 AM
Maybe you think it's too simple ..but really i start deaming having date in a grid ...

aconran
7 Mar 2012, 1:35 PM
Configure the Field's dateFormat configuration.
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Field-cfg-dateFormat

Masks appear like so:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Date

tyfab
8 Mar 2012, 4:35 AM
Thanks

I will try and let you know ...

Fabrice