Forum


12:09

23/10/2009

Hi,
In my jqGrid, I don't use grid Forms, but clicking on Add or Edit, is opened my custom form.
In edit case, I populate the form using GridToForm, but I have problem with the check boxes:
If from the server arrives 1, into the cell I have to display "yes"; "no" if 0 (an i think it's simple using setCell).
But when I populate the form I must add "checked" if the value is 1 and not "yes".
How can I remember the original data comes from the server?
In other case, arrives from the server a 7-length string , for example 1000011 , and the value of cell is changed to "M,-,-,-,-,S,S" (for the weekly frequency); again i have to check only 3 check boxes using 1000011, and not " M,-,-,-,-,S,S".
This because "yes", "no", " M,-,-,-,-,S,S" can be traslated so i must to consider 1, 0 and 1000011.
13:40

Moderators
30/10/2007

Hello,
Which version do you use?
Also in you form maybe you should define :
<input type='checkbox' value='Yes' offval='No' />
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
54 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