title: How to achieve N-level nested hierarchy in Kendo UI Grid using ASP.NET MVC
body: <p>I am trying to implement N-level nested hierarchy in Kendo UI Grid using ASP.NET MVC
  i can implement specific number of Nested Grid but how to implement N-level nested Grid using a Specific Data in asp.net MVC</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;Kendo.Mvc.Examples.Models.EmployeeViewModel&gt;()
          .Name("grid")
          .Columns(columns =&gt;
          {
              columns.Bound(e =&gt; e.FirstName).Width(110);
              columns.Bound(e =&gt; e.LastName).Width(110);
              columns.Bound(e =&gt; e.Country).Width(110);
              columns.Bound(e =&gt; e.City).Width(110);
              columns.Bound(e =&gt; e.Title);
  
          })               
          .Sortable()
          .Pageable()
          .Scrollable()
          .ClientDetailTemplateId("template")
          .HtmlAttributes(new { style = "height:430px;" })
          .DataSource(dataSource =&gt; dataSource
              .Ajax()
              .PageSize(6)
              .Read(read =&gt; read.Action("HierarchyBinding_Employees", "Grid"))            
          )        
          .Events(events =&gt; events.DataBound("dataBound"))
  )
  
  &lt;script id="template" type="text/kendo-tmpl"&gt;
      @(Html.Kendo().Grid&lt;Kendo.Mvc.Examples.Models.OrderViewModel&gt;()
              .Name("grid_#=EmployeeID#")
              .Columns(columns =&gt;
              {
                  columns.Bound(o =&gt; o.OrderID).Width(70);
                  columns.Bound(o =&gt; o.ShipCountry).Width(110);
                  columns.Bound(o =&gt; o.ShipAddress);
                  columns.Bound(o =&gt; o.ShipName).Width(200);
              })
              .DataSource(dataSource =&gt; dataSource
                  .Ajax()
                  .PageSize(5)
                  .Read(read =&gt; read.Action("HierarchyBinding_Orders", "Grid", new { employeeID = "#=EmployeeID#" }))
              )
              .Pageable()
              .Sortable()
              .ToClientTemplate()
      )
  &lt;/script&gt;
  &lt;script&gt;
      function dataBound() {
          this.expandRow(this.tbody.find("tr.k-master-row").first());
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Using this code i can get 1 nested Grid.</p>
  
  <p>Please guide about getting N-Level of Kendo Nested Grids. Thanks</p>