▶ JSON string from server
▶ Converted to an object with ko.parseJSON
▶ Mapped to use observables and add a computed (dependentObservable)
▶ Use ko.utils.arrayMap to build an array with just categories used
▶ Use ko.utils.arrayGetDistinctValues to get just the unique categories used
▶ Use ko.utils.compareArrays to find available categories that haven't been used
▶ Convert items to JSON
▶ Map items to send back to server and convert to JSON
Montego Home
Display in an editor
Filter display by name Filter:
Find first match by name Search:     
Category Name Price Tax
Add Item Total:
[ NorthWind: Products By Category using a json view model in a Cart Editor ]
[ ko - Two View Models: FilterGrid and CartEditor ]
[ knockoutDATA_BIND ]