This question is locked. New answers and comments are not allowed.
After my batch editing is done and the database is updated, I need to return the View that my grid is bound to.
The problem is that I need all the parameters on the page (html controls: startDate, endDate, spendVendorID, spendProductID), to call into my service to get that data.
Is there a way to return what ever the current view of the grid without getting the data from my database again?
If I have to get the data from my database, is there a way to get the value of the HTML controls in the _SaveBatchEditing function above?
[AcceptVerbs(HttpVerbs.Post)][GridAction]public ActionResult _SaveBatchEditing([Bind(Prefix = "inserted")]IEnumerable<SpendDetail> insertedRecords, [Bind(Prefix = "updated")]IEnumerable<SpendDetail> updatedRecords, [Bind(Prefix = "deleted")]IEnumerable<SpendDetail> deletedRecords){ if (!Equals(updatedRecords, null) && updatedRecords.Count() > 0) { // Preform the updates this.SpendService.UpdateSpendDetails(updatedRecords.ToList()); // Audit track who made the changes } return View(new GridModel());}The problem is that I need all the parameters on the page (html controls: startDate, endDate, spendVendorID, spendProductID), to call into my service to get that data.
Is there a way to return what ever the current view of the grid without getting the data from my database again?
If I have to get the data from my database, is there a way to get the value of the HTML controls in the _SaveBatchEditing function above?