emilyberk
18 Aug 2011, 11:30 AM
I Know there are several forum threads about this but none of the solutions work for me.
In my xtemplate for my row expander I have a date field that I want to format
plugins: [{
ptype: 'rowexpander',
rowBodyTpl: this.something.getRowBodyXTemplate()
}],
the function getRowBodyXTemplate returns the xtemplate string which is like this
'<td > <p> discovered {discovered_at}</p> </td>'
it's the discovered_at Date that i need to format.
it's specified in the model as
{ name: 'discovered_at', type: 'date'},
and i tried this but my date came up undefined
{ name: 'discovered_at', type: 'date', dateFormat: 'n-j-Y g:i A'},
help?
In my xtemplate for my row expander I have a date field that I want to format
plugins: [{
ptype: 'rowexpander',
rowBodyTpl: this.something.getRowBodyXTemplate()
}],
the function getRowBodyXTemplate returns the xtemplate string which is like this
'<td > <p> discovered {discovered_at}</p> </td>'
it's the discovered_at Date that i need to format.
it's specified in the model as
{ name: 'discovered_at', type: 'date'},
and i tried this but my date came up undefined
{ name: 'discovered_at', type: 'date', dateFormat: 'n-j-Y g:i A'},
help?