tony said:
2) You can use a succesfunc – to this function we pass the response.
Note that since we use a jQuery complete event in ajax you should parse your JSON response something like
function mysuccces(res)
{
myjson = $.jgrid.parse(res.responseText);
// now you have what you want
}
Regards
Tony
Hi Tony,
thanks for kick me to right direction. 🙂
Now I am using aftersavefunc for handle response. It's works almost right, but one problem is here. For example I do this like user:
1) Edit grid row
2) I change some data for example 'Client 1' to 'Client 2' and press ENTER
3) Grid throw error message because note field is not valid. (server side validate)
4) Grid row is in edit mode again.
5) I will not repair data and leave editing grid (press ESC)
6) In afterrestorefunc is $('#grid').trigger('reloadGrid'); I need get actual data from server, but this throw error in Firebug and request is not send.
Do you know how solve this?
May be there is other better solution. I don't know.
You can see and try it at http://sandbox.jipas.cz/jqgrid/
Thanks for help me
Regards czita