Forum

July 12th, 2025
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
hidden fields not posted
23/09/2009
15:46
Avatar
JQGRID_Fan
Guest
Guests

Hey Tony I've searched the forums and I can't seem to find an answer.

When I add or edit records hidden cols don't seem to get posted to the server.  Is there a way to turn that on or off?

so for example:

colMode:[

{name: 'Id', index:'id', width:50, hidden:true, editable: false, xmlmap: "Id"},

{name: 'Record Number', index:'RecordNum', width:50, hidden:true, editable: false, xmlmap: "RecordNum"},

{name: 'Project', index:''Project'', width:50, editable: true, xmlmap: "'Project'"},

etc..

But on the server I only get params:

ID=someId

Project=someProject

It's possible I don't need to be able to do this, but rather need to figure out someway to tie what shows up in the grid back to real data records in the database.  This is specifically to avoid creating new results every time the a edit is posted to the server.  Otherwise in the database the same record will be added over and over instead of being edited (or replaced).  If a row has or doesn't have a recordNum (say primary key) then I could tell that it already exists and could look up the values in the database.

25/09/2009
05:08
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

colMode:[

{name: 'Id', index:'id', width:50, hidden:true, xmlmap: “Id”},

{name: 'Record Number', index:'RecordNum', width:50, hidden:true, editable: false, xmlmap: “RecordNum”},

{name: 'Project', index:''Project'', width:50, editable: true, xmlmap: “'Project'”},

...

remove the editable false from hidden coulmns and the values will be posted

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: 994

Currently Online:
24 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