Forum
Topic RSS
14:31
13/06/2009
OfflineHi,
I've got a small problem that I've been scratching my head for days on and hope that someone can put me straight. I've cut the code down to the simplest I can that still demostrates the issue.
http://www.thekmz.co.uk/GEPlug.....test8.html
Summary:
I have a small grid based on local data that has a few rows in it. The data represents Pace (for runners etc) and while the source array contains the value in m/s (metres/second) the user can choose to view it in the grid in a variety of formats (m/s, min/km etc) - this they do by selecting their option from the select dropdown. This all works ok.
The user can also edit the values. If they change the value then all is ok but if they just enter through it/don't change it I get an error as the value is not what the fmt_pace function expects.
I've tried a number of different things - including an unformat on the column in question (same url but test8b.html) but don't seem to be getting anywhere. (I've also tried the latest jqgrid version as I'm currently on 3.8 in my app but get the same).
So my question - how do I go about achieving what I need - user being able to select from the various format options and for the grid to display in that format, being able to edit in the same format while saving to the base array in m/s and also to be able to enter through/not change and particular cell - the latter being the only part that doesn't work.
Thanks in advance
Kindest regards
Romyn
Most Users Ever Online: 994
Currently Online:
23 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
Log In
Home