Hello,
I'm using an igGrid via MVC wrapper and I also have editors for my Model on the same page. When I call saveChanges for the Grid the Controller method tied to the UpdateURL property does not seem to see any of my Model data (the model is null). Conversely, if I submit my changes via HttpPost, the Controller sees my Model but when calling this code:
List<Transaction<FAMSPlaybookActivity>> transactions = gridModel.LoadTransactions<FAMSPlaybookActivity>(HttpContext.Request.Form["ig_transactions"]);
I would get the error:
'System.ArgumentNullException' - String reference not set to an instance of a String.
I believe this is because the ig_transaction is null. How would I expose the grid transaction to my Controller post method? I need to save both my Model data and Grid transaction on the same controller method. An example code would be appreciated, thanks!
Please have a look at the following sample - http://www.igniteui.com/grid/rest-editing. I believe it will be helpful to you since it implements a similar scenario - review the [ActionName("rest-editing")] action. Please let me know if I misunderstood you or if you have further questions on the issue.
No, that's not what I'm looking for. I need to access the grid's transaction object in my controller on the post. How is this going to help me?
[ActionName("rest-editing")] public ActionResult RestEditing() { return View("rest-editing"); }
That does not show me anything. Please look over my original question and fully understand it before answering. I need to be able to access this from the controller on the post:
That code is directly from the Basic Edit example. As I said, running that code on my controller save method returns a null object. I can see it using the grid's saveChanges controller method but that method does not see my model. I need to see both my model data and the transaction object.