Forum



22:03

03/12/2010

I have two fields eventDate and eventTime. On the grid I would like a single "Event Time Stamp" column, but on the add/edit dialog I would like the fields seperated. I set the hidden:true and edithidder:true for the eventTime. I also created a custom formatter for the eventDate field to combine the two on the grid:
formatter:function(cellvalue, options, rowObject) {
if (inDialog)
return cellvalue
else
return rowObject[2] + " " + rowObject[3];
}
}
inDialog is a boolean is toggle based on beforeShowForm and onClose events. inDialog is setting properly but the default field value for eventDate is "mm/dd/yyyy hh:mmtt", where I want it to be "mm/dd/yyyy".
Any ideas and/or am I going about this the right way?
Most Users Ever Online: 715
Currently Online:
43 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