Forum
Topic RSS
15:46
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.
05:08
Moderators
30/10/2007
OfflinecolMode:[
{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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home