0
votes

I'm new to knockout. I have a page that loads some trade data from a wcf call and adds it as a nested ko.observablearray to my view model using ko.mapping.

The loaded trade data has typecode that I need to lookup in a typeCodes array in my viewModel. So i'm trying to use ko.mapping options to create a computed column for each trade added.

http://jsfiddle.net/russellgove/KXneJ/8/

1

1 Answers

1
votes

I think you need to customize the creation of child objects (add a "create" callback) when calling the mapping plugin. Here is the modified fiddle.