I am using location: remote in datamodel. I moved the $grid.pqGrid("refreshDataAndView") to the success of the ajax in the add function and it still won't refresh the data. I need to refresh the page. It works in the FF browser.
This is my datamodel
var dataModel = {//define datamodel and get data from server
cache: true,
location: "remote",
paging: "remote",
sorting: "local",
sortDir: "down",
//rPP: 20,
//rPPOptions: [10, 20, 40],
dataType: "JSON",
getUrl: function () {
return { url: "/PCA/PCAData/" };
},
getData: function (dataJSON, textStatus, jqXHR ){
return { data: dataJSON };
}
};