Reputation: 297
Guys
Currently I found that: the jQGrid automatically reload after editing, how could I disable auto reload grid after editing? as I just want to reload the field that I updated.
Thanks,
Lindy
Upvotes: 0
Views: 1654
Reputation: 221997
You should use
reloadAfterSubmit: false
option of the form editing.
You should be careful with the usage of the option in case of adding on new rows. In the case you have to return rowid from the server and use afterSubmit
to decode it and forward to jqGrid. See the answer for the code example.
Upvotes: 1
Reputation: 347
It should be called on click event of save button and your page will reload with new values:
$(document).ready(function(){
var address=$(location).attr("href");
window.location.reload(address);
});
Upvotes: 1