title: Knockout matrix
body: <p>I am trying to make a matrix matching table using knockout, but I'm stuck regarding the compare between the current data-bind and the parent data-bind.</p>
  
  <p>Here is the <a href="http://jsfiddle.net/wup9rxeu/4/" rel="nofollow">jsfiddle.net/wup9rxeu/4/</a></p>
  
  <pre><code>&lt;script type="text/html" id="cubeheader-template"&gt;
  &lt;th data-bind="text: $data.Name"&gt;&lt;/th&gt;
  &lt;/script&gt;
  
  &lt;script type="text/html" id="body-template"&gt;
  &lt;!-- ko foreach: $parent.modeldim --&gt;
  &lt;td&gt;x&lt;/td&gt;
  &lt;!-- /ko --&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>What I want to accomplished is that when the table is populated with x and - for each td, based on the modelcubdim data.</p>
  
  <p>I need some pointer on comparing the ID against the parent ID and if it's a match, then X or else -</p>
  
  <p>Thanks</p>