I am using jqGrid form Edit with templating from the link in Here
But Whenever a user clicks Edit/View I don't want to rely on the data which is on the grid but I want to get a new fresh data from the server and populate the form.
So I have the following jquery function which gets fresh data on the row being Edited,
function GetItem(id) {
$.ajax({
url: '/Asset/GetSingleItem/'+id,
type: 'GET',
success: function (data) {
//Data is the json that i want to show on my Edit form.
}
});
}
I guess the solution is to override the OnRowEdit/View of the jqgrid and do some trick.