This mvc form uses the json data as the knockout view model constructor from the Server. The Server Controller reads the database and stores the knockout view model in the expando ViewBag. The View then reads the ViewBag.expando uses the Razor @Html.Raw(@var); as a return value for a javascript var function(). That is then bound to KnockOut by creating a new Category Model with the function() return.
This View Does Not Write Back To The Database. See json button at the bottom of the form.
Back to List Client Side Local Version Client Side Local Diffferent Model Version Database NorthWind Paged Supplier Grid
ID CategoryName DescriptionProduct Details


ProductIDProductNameSupplierQtyPerUnitUnitPriceUnitsInStockUnitsOnOrderReOrderLevelDiscontinued
Delete
Add Product