Hi,
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/GEPlugin/wip/test/gridtest8/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
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top