Forum
13:59
myevent function is like:
in edit options
{height:280,reloadAfterSubmit:true,url:"/adeltech/user/edit",afterSubmit:function(serverResponse, postdata)
{
alert(serverResponse.responseText+" post"+postdata.username);
}}, // edit options
this event alerts the required values properly but after alert a error is showing in firebug like:
09:48
15/12/2009
myevent function is like:
in edit options
{height:280,reloadAfterSubmit:true,url:"/adeltech/user/edit",afterSubmit:function(serverResponse, postdata) { alert(serverResponse.responseText+" post"+postdata.username);
}}, // edit options
this event alerts the required values properly but after alert a error is showing in firebug like:
18:01
Moderators
30/10/2007
Hello,
Sorry to say this for 10000.... time - did you have read the documentation carefully?
http://www.trirand.com/jqgridw.....ditgridrow
The text say:
fires after response has been received from server. Typically used to display status from server (e.g., the data is successfully saved or the save cancelled for server-side editing reasons). Receives as parameters the data returned from the request and an array of the posted values of type id=value1,value2.
When used this event should return array with the following items [success, message, new_id]
where
success is a boolean value if true the process continues, if false a error message appear and all other processing is stoped.
new_id can be used to set the new row id in the grid when we are in add mode.
afterSubmit : function(response, postdata)
{
…
return [succes,message,new_id]
}
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.
04:52
15/12/2009
Hi Tony
I am very much thank full to you for giving me such a nice reply quickly.
I follow the documentation in pdf downloaded from your site earlier.
That is why this misunderstanding happens.
Any way those want to refer the documentation, always go for the latest documentation
available here: http://www.trirand.com/jqgridwiki/
Regards
Charles.
Most Users Ever Online: 715
Currently Online:
122 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