title: Is it possible to pass a model into a partial view when returned via JSON?
body: <p>In my web application, a user can click on a list item, which will then send an AJAX request to the controller, which will then return a JSON list of items:</p>
  
  <pre><code>        return Json(new CategoryChildrenViewModel(){
              CategoryItems = selectedCategoryItem.SubCategories
          });
  </code></pre>
  
  <p>I then have a partial view, which will be used list the returned item:</p>
  
  <pre><code>@using Microsoft.AspNet.Identity;
  @model Models.Category
  &lt;li class="treelistitem" data-id="@Model.CategoryId"&gt;
      &lt;div&gt;
      &lt;i class="glyphicon glyphicon-folder-open rightfolderpadding"&gt;&lt;/i&gt;@Model.CategoryName&lt;span class="btn-group"&gt;
          @if (ApplicationSettings.Default.RoleAllowEditCategories!="None" &amp;&amp; (User.IsInRole(ApplicationSettings.Default.RoleAllowEditCategories) || User.IsInRole("Administator")))
          {
          &lt;a href="@Url.Action("Edit", "0")" class="btn btn-xs btn-primary"&gt;&lt;i class="glyphicon glyphicon-edit"&gt;&lt;/i&gt;Edit&lt;/a&gt;
          }
          @if (ApplicationSettings.Default.RoleAllowDeleteCategories != "None" &amp;&amp; (User.IsInRole(ApplicationSettings.Default.RoleAllowDeleteCategories) || User.IsInRole("Administator")))
          {
          &lt;a href="@Url.Action("Delete", "0")" class="btn btn-xs btn-danger"&gt;&lt;i class="glyphicon glyphicon-remove"&gt;&lt;/i&gt;Delete&lt;/a&gt;
          }
      &lt;/span&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Is it possible to pass each item in the list returned by JSON into the partial view, so that it can render the items with the details of each item returned?</p>