PDA

View Full Version : ???????? ?? ????? ? ??? ??????? ? ??????????? ???? ? ?????



pav-pas
6 Sep 2010, 3:25 AM
? IE, Firefox ? ????? ? ???? ???? (renderer: Ext.util.Format.dateRenderer('d/m/Y') ???????????? NaN/NaN/NaN,
? Opere ? Chrome ??? ?????????, ? ??? ??????? ?? ?????.

???????? json ??????
{success:true,rows:[{"0":"3","id":"3","1":"1","num":"1","2":"1","fio":"1","3":"2010-09-06","data_r":"2010-09-06"}]}

Condor
6 Sep 2010, 3:39 AM
I hope you understand English:

Before you can use a column renderer you first have to convert the date string to a Date instance, e.g.

fields: [
...
{name: 'data_r', type: 'date', dateFormat: 'Y-m-d'}
...
]

pav-pas
6 Sep 2010, 3:49 AM
??? ????? ????

Condor
6 Sep 2010, 4:06 AM
A dateRenderer only works if the field contains a Date instance. Did you configure the store record field correctly (as described above) to convert your '2010-09-06' string to a Date?