I am fairly new to MVC
I have tried all day to use the MVVM Remote Binding example to update the model using form post instead of json to post to a controller action and it won't map the post data to the IEnumerable<ProductViewModel> products argument of my controller action. I have inspected the post parameters and this is what I see:
In the working example for Kendo Grid Editing Custom, I noticed that the post parameters should be more like this:
Notice how the properties are not indexed. I am guessing that this is why it doesn't work.
Does anyone have a working example (with controller source) of Kendo MVVM being used to update the model?
I have tried all day to use the MVVM Remote Binding example to update the model using form post instead of json to post to a controller action and it won't map the post data to the IEnumerable<ProductViewModel> products argument of my controller action. I have inspected the post parameters and this is what I see:
models[0][Discontinued] | false |
models[0][ProductID] | 3 |
models[0][ProductName] | Aniseed Syrup |
models[0][UnitPrice] | 12 |
models[0][UnitsInStock] | 13 |
models[0][UnitsOnOrder] | 0 |
In the working example for Kendo Grid Editing Custom, I noticed that the post parameters should be more like this:
models[0].Discontinued | false |
models[0].ProductID | 3 |
models[0].ProductName |
Aniseed Syrup |
models[0].UnitPrice | 12 |
models[0].UnitsInStock | 13 |
models[0].UnitsOnOrder | 0 |
Notice how the properties are not indexed. I am guessing that this is why it doesn't work.
Does anyone have a working example (with controller source) of Kendo MVVM being used to update the model?