Forum
Topic RSS
11:26
08/10/2008
OfflineGreetings all,
when I create an editable grid, the "id" column passed to the save page is always "id", even though my colModel specifies it like this:
colModel:[
{name:'questionid',index:'questionid',width:30},
.... other stuff
]
I'd expect that when the row is saved, the form field would be named "questionid" instead of "id". I can't seem to find any other way to change this.
Is it possible to change the name of the ID field passed in the form post?
thanks.
marc
13:04
Moderators
30/10/2007
OfflineHello,
Make this field editable. This way you can post it to the server
Regards
Tony
P.S. Or if you do not want this use onClickSubmit event and
pass this data to the server
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.
15:12
08/09/2008
OfflineI use something like
beforeSubmit: function() {
var sr = jQuery("#list").getGridParam('selrow');
var rowData = jQuery("#list").getRowData(sr);
this.editData = {"co_sector" : rowData['co_sector']};
retarr = {"co_sector" : rowData['co_sector']};
return retarr;
}
"co_sector" is a hidden field and it is my primary key. In your request will come an "co-sector=value" in the url.
HTH
02:56
Moderators
30/10/2007
OfflineHello,
Please use the online documaentation which is up to date.
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: 816
Currently Online:
31 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