Forum


10:59

08/09/2008

You can use the beforeSubmit event for the action you are executing and add any value to the editData parameter. For example:
// --- edit options ---
{ height:100,
width:500,
reloadAfterSubmit:false,
beforeSubmit: function() {
var sr = jQuery("#list").getGridParam('selrow');
var rowData = jQuery("#list").getRowData(sr);
this.editData = {"co_motivo_desa" : rowData['co_motivo_desa']};
retarr = {"co_motivo_desa" : rowData['co_motivo_desa']};
return retarr;
}
Here I am just adding "co_motivo_desa" to the request...
HTH
11:07

29/08/2008

thanx,
Here is the really strange thing, the id is in the post to the server. When the request hits the controller method, the id is an empty string.
I have tried everything I could think of. I appreciate the response, but I would really like to know what I am doing wrong.
Does my method need a certain return type?
12:16

29/08/2008

Receiving the parameter.
When I look at the actual http post, the id is in there.
My method on my controller looks like this
public JsonResult EditClients(string address, string clientdescription, string clientname, string contactname, string contactnumber, string country, string id, string province)
Everything has a value except id, it is empty.
I got around though, in the
Most Users Ever Online: 715
Currently Online:
77 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