Hi
I have an ejGrid whose source has been set to a DataManager and using the remoteSaveAdapter.
When inserting a new record, the Grid seems to lose the record. My MVC controller Insert action returns all records from the database. Even when I change this to only return the record inserted the Grid still loses the record.
What am I doing wrong?
$(function () {
$("#Grid").ejGrid({
dataSource: ej.DataManager({
json: Data,
updateUrl: projectionPage.urlFor("STAND0101/Update"),
insertUrl: projectionPage.urlFor("STAND0101/Insert"),
removeUrl: projectionPage.urlFor("STAND0101/Delete"),
adaptor: "remoteSaveAdaptor"
}),
allowPaging: false,
enableAltRow: false,
allowSorting: true,
...
public ActionResult Insert(Model value)
{
var busEnt = DataServices.BusinessEntities.Save(value);
return Json(FetchBusinessEntities(), JsonRequestBehavior.AllowGet);
return Json(response);
}