Forum


22:44

08/11/2010

I have spent an excruciating amount of time looking through the forums trying to find an answer to my problem.
The last guy who posted the same probl;em did not get any help, maybe I will have better luck:
Here is the error: var m=b.jgrid.formatter.date.monthName...]!==undefined)i[f[c].toLowerCase()]=
The date data coming back in the array is per Java is MM/dd/yyyy which is 01/31/2010 format.
The colModel format is as follows:
{sortable:true, name:'requestDate', index:'requestDate', width:90, sorttype:'date', datefmt:'m/d/Y'},
Over the course of 2 days of testing nothing has worked.
1) I tried chaning the date format coming back to Y-m-d format per the grid.
I got the data in Y-m-d format, but still would nto sort as a date.
2) tried #1 and then
$("#list").jqGrid('setColProp','requestDate',{sorttype:'date', formatter:'date', datefmt: 'm/d/Y'});
to see if my date would change format, and then sort, but this gave me another formatter undefined issue.
3) I tried mm/dd/yyyy in the colModel and that did not work.
I've tried a dozen other things I saw on here, and none of them worked.
Any help would be much greatly appreciated.
Thanks!
3) I tried adding code so that:
Most Users Ever Online: 715
Currently Online:
41 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66