I've done a check with the Network tab open. There is a request going through, see attached screenshot for details.
The indicator is shown when changing values. As explained before, the changes are saved to the Grid, they just aren't persisting to the database and the controller function isn't being called.
Due to the nature of our work I can't provide a full program for you to look at. However I'll include some extra code I feel might be relevant to the issue.
Below is the function that is being successfully called by the Grid;
public
ActionResult Schedule_Read([DataSourceRequest]DataSourceRequest request, [Bind(Include =
"YearID,SiteID,PlantID"
)]ScheduleSelect selection)
{
var lines = db.Lines.Where(l => l.PlantID == selection.PlantID);
foreach
(Line l
in
lines)
{
var audit = db.AuditSchedules.Where(a => a.YearID == selection.YearID).Where(a => a.LineID == l.ID).SingleOrDefault();
if
(audit ==
null
)
{
db.AuditSchedules.Add(
new
AuditSchedule(){ YearID = selection.YearID, LineID = l.ID});
}
}
db.SaveChanges();
var audits = db.AuditSchedules.Where(a => a.YearID == selection.YearID);
var results = from l
in
lines
join a
in
audits on l equals a.Line
select
new
SchedulingViewModel() { LineName = l.LineName, LineID = l.ID, YearID = selection.YearID, WeekOfFirst = a.WeekOfFirst, WeeksBetweenEach = a.WeeksBetweenEach };
DataSourceResult result = results.ToList().ToDataSourceResult(request);
return
Json(result, JsonRequestBehavior.AllowGet);
}
Below is the function trying to be called in the Controller (right now set to return null since I was mainly debugging to see if the function could be called).
[AcceptVerbs(HttpVerbs.Post)]
public
ActionResult Schedule_Write([DataSourceRequest]DataSourceRequest request, [Bind(Prefix=
"models"
)]IEnumerable<SchedulingViewModel> schedules){
return
null
; }