title: Can a display template be invoked from within an editor template?
body: <p>I have created a display template in <code>~/Views/Shared/DisplayTemplates</code> named <code>ImpactMatrix.cshtml</code>.  It accepts a nullable int and renders a two-dimensional matrix with the selected number highlighted:</p>
  
  <pre><code>@model int?
  
  @{
      var matrix = ImpactMatrix.GetMatrix();
  }   
  
  &lt;div class="impactmatrix"&gt;
    &lt;table&gt;
      @for (int i = 0; i &lt; matrix.GetLength(0); i++)
      { 
          &lt;tr&gt;
            @for (int j = 0; j &lt; matrix.GetLength(1); j++)
            {
                var cell = matrix[i, j];
                &lt;td data-color="@cell.Color" 
                  class="matrix @(Model == cell.Value ? cell.Color.ToString() : "")"&gt;
                      @cell.Value
                &lt;/td&gt;
            }
          &lt;/tr&gt;
      }
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It's easily reusable and works great.  I can invoke it within my view like so:</p>
  
  <pre><code>@Html.DisplayFor(m=&gt; m.ImpactFactor, "ImpactMatrix")
  </code></pre>
  
  <p>Now I've decided to extend that and make it an editor as well.  The idea is to add a hidden input for the selected number and wrap the input along with the matrix template with a div.  From there it should be a simple matter to use Javascript to interact with my display grid and populate the hidden input.</p>
  
  <p>I've created an editor template, also named <code>ImpactMatrix.cshtml</code>, within my <code>~/Views/Shared/EditorTemplates</code> folder.  Here's the code:</p>
  
  <pre><code>@model int?
  
  &lt;div class="impactmatrix-editor"&gt;
      @Html.HiddenFor(m =&gt; m)
      @Html.DisplayFor(m =&gt; m, "ImpactMatrix")
  &lt;/div&gt;
  </code></pre>
  
  <p>My problem is that the hidden input renders correctly, but the nested display template does not render inside my editor template.  Is what I am trying to do possible?</p>