Home › Forums › Guriddo jqGrid JS › Help › How to submit Grid data row from JQuery
Hi, newbie question here.
If I have set a cell value in a grid by:
var id = $('#mygrid').jqGrid('getGridParam','selrow');
Hello,
After you do this with setCell you will need to call your own custom ajax to make the changes to the server,
something like this:
$.ajax({
url: 'url_to_server',
data : { id : 'myid', name: 'myname'}
…});
But i think it is better first to make changes to server and if succes to make them in the grid.
Regards
tony said: Hello, After you do this with setCell you will need to call your own custom ajax to make the changes to the server, something like this: $.ajax({ url: 'url_to_server', data : { id : 'myid', name: 'myname'} …}); But i think it is better first to make changes to server and if succes to make them in the grid. Regards
tony said:
So I should perform an ajax call to update database from my page directly and then refresh/reload the grid?
Thanks
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS