Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Combining columns on grid but seperate on dialog?
Tags: formatter
08/12/2010
22:03
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

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?

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information