0

as I understand data-bind="wjFlexChart: { itemsSource: data, bindingX: 'week' } iterates through all items in array data (like foreach knockout binding).

My questions are:
1) how can I access current element Id ($index doesn't work)?
2) are $data, $parent the same as $data, $parent for knockout foreach binding?

31415926
  • 3,811
  • 7
  • 47
  • 78
  • Try this: 1) open your browsers developer tools 2) in the inspector, highlight / click on a HTML child element inside the container with the `data-bind="wjFlexChart` 3) in the console, enter `ko.contextFor($0)`. This will show you all the properties of the binding context. [Example screenshot on how to use `ko.contextFor`](http://i.imgur.com/qXWF2ot.jpg). – janfoeh May 19 '15 at 16:00
  • The chart's binding/rendering happens outside of Knockout if that helps. What are you trying to do exactly? – rrjohnson85 May 19 '15 at 17:53
  • @rrjohnson85, here is the post about what im trying to do: http://stackoverflow.com/questions/30321738/wijmo-5-flex-chart-doesnt-work-with-knockout-foreach-binding?noredirect=1#comment48773413_30321738 – 31415926 May 20 '15 at 08:26

0 Answers0