I'm trying to build an addon and I am having a problem with the datefield. I want to be able to update the release date from the grid, and it appears to work, but it displays "0NaN-NaN-NaN" instead of the date. If I change the xtype to textfield, the date displays fine. I have also tried to format the date. Below is my base java code.
,fields: ['id','name','description','release_date','menu']
,columns: [{
header: _('id')
,dataIndex: 'id'
,sortable: true
,width: 30
},{
header: _('name')
,dataIndex: 'name'
,sortable: true
,width: 100
,editor: { xtype: 'textfield' }
},{
header: _('description')
,dataIndex: 'description'
,sortable: false
,width: 350
,editor: { xtype: 'textfield' }
},{
header: _('release_date')
,dataIndex: 'release_date'
,sortable: false
,width: 80
,editor: { xtype: 'datefield' }
,allowBlank: true
}]
If anyone has any ideas or if I need to post more info, please let me know.
Thanks