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.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top