0

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/

4

1 回答 1

1

我认为您需要在调用映射插件时自定义子对象的创建(添加“创建”回调)。这是修改后的小提琴

于 2012-09-12T15:54:52.033 回答