-
20 Oct 2009 9:21 AM #1
Problem in Firefox with dateRenderer on column
Problem in Firefox with dateRenderer on column
I have a column in a grid that is a date being passed back as:
Here is my code for the column:Code:Sep 23
In Chrome this renders correctly, and I can sort the column correctly by date (if I leave that out, it sorts the numbers as text and incorrectly sorts them).Code:{id:'sched',header: 'Sched', width: 50, sortable: true, dataIndex: 'sched_date', renderer: Ext.util.Format.dateRenderer('M d')},
Problem is, in Firefox I am getting the following error:
Why would this work just fine in Chrome, but not in Firefox?? Does anyone have a clue on this one? I should be able to use the 'M d' formatter.Code:Date.monthNames[month] is undefined http://localhost:9005/static/js/extjs/ext-all.js Line 19
Thanks for any input.
JJ
-
20 Oct 2009 12:56 PM #2
Anyone have any ideas on this? I am stumped.
-
21 Oct 2009 6:34 AM #3
Figured it out
Figured it out
For those that come across this, I was not formatting the date also in the JSONReader:
Code:reader : new Ext.data.JsonReader({ root : 'recruits', totalProperty : 'totalCountRecruits' }, [ {name: 'source_abbr'}, {name: 'source_name'}, {name: 'source_sec_abbr'}, {name: 'source_sec_name'}, {name: 'internet_app'}, {name: 'recept_abbr'}, {name: 'recept_name'}, {name: 'email'}, {name: 'recruit_name'}, {name: 'recruit_office_id'}, {name: 'recruit_id'}, {name: 'sched_date', type: 'date', dateFormat: 'M d'}, {name: 'rescheduled'}, {name: 'noshow'}, {name: 'prior_qual'}, {name: 'showed'}, {name: 'qual'}, {name: 'kept'}, {name: 'accept'}, {name: 'training'} ] ),


Reply With Quote