I have a MVC Core project which has a Grid. It is a hierarchal grid with a child grid. Combined they show your basic orders and history of orders. The grid fully populates and pages. My problems lie with the editing side of things.
I am using a pop up editor. A editor template is used and effectively gathers users edits. The update side of things works flawlessly. By this I mean you click Edit, the edit occurs, you press the save and the database gets updated. The update method receives the "model" values entered during the edit action. This is "as expected".
My problem exists with the Create action. Both the Update and Create use the same editor. Visually the Create editor accepts user input however when the "Create" action is called, the server method receives a model with null values for all the values entered. Not a single entered value is returned in the model. No errors are present in the developer console., non are occurring in any code I have control over. I simply cannot explain the lack of values in the model.
I have compared the "Request.Form" values in the Update vs Create methods. My Update methods request has FORM values in approximately 107 keyvalue pairs. When the Create methods are used it gets 47 items. Those 47 are all the default values of the model. (I added default values to the datasource model to test this. Those values arrive in the model, not the entered values)
Can anyone point me to the differences between the Update/Create actions? Can anyone point me to a path to find/solve my problem?
Thanks for any suggestions.