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_TopicIcon
Grid to Form - checkbox
30/11/2009
12:09
Avatar
pins83
Italy
Member
Members
Forum Posts: 6
Member Since:
23/10/2009
sp_UserOfflineSmall Offline

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.

30/11/2009
13:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information