title: Kendo grid noRecord template unexpected behavior with footer template
body: <p>I have implemented kendo grid in my project. To show the footer values, I have added footer template to my grids. I have also added no record template to display message to user when data is not present. It is working as expected but when this functionality is implemented for hierarchy grid then it shows weird behavior.</p>
  
  <p>It shows the "No record" template below footer while it should display between header and footer. Here is the sample code.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;base href="https://demos.telerik.com/kendo-ui/grid/hierarchy"&gt;
      &lt;style&gt;html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }&lt;/style&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.1.117/styles/kendo.common-bootstrap.min.css" /&gt;
      &lt;link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.1.117/styles/kendo.bootstrap.min.css" /&gt;
      &lt;link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.1.117/styles/kendo.bootstrap.mobile.min.css" /&gt;
  
      &lt;script src="https://kendo.cdn.telerik.com/2018.1.117/js/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://kendo.cdn.telerik.com/2018.1.117/js/kendo.all.min.js"&gt;&lt;/script&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
  
          &lt;div id="example"&gt;
              &lt;div id="grid"&gt;&lt;/div&gt;
  
              &lt;script&gt;
                  $(document).ready(function() {
                      var element = $("#grid").kendoGrid({
                          dataSource: {
                              type: "odata",
                              transport: {
                                  read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Employees"
                              },
                              pageSize: 6,
                              serverPaging: true,
                              serverSorting: true
                          },
                          height: 600,
                          sortable: true,
                          pageable: true,
                          detailInit: detailInit,
                          dataBound: function() {
                              this.expandRow(this.tbody.find("tr.k-master-row").first());
                          },
                          columns: [
                              {
                                  field: "FirstName",
                                  title: "First Name",
                                  width: "110px"
                              },
                              {
                                  field: "LastName",
                                  title: "Last Name",
                                  width: "110px"
                              },
                              {
                                  field: "Country",
                                  width: "110px"
                              },
                              {
                                  field: "City",
                                  width: "110px"
                              },
                              {
                                  field: "Title"
                              }
                          ]
                      });
                  });
  
                  function detailInit(e) {
                      $("&lt;div/&gt;").appendTo(e.detailCell).kendoGrid({
                          dataSource: {
                            //  data: [{
                              //  OrderID: 1,
                               // ShipCountry: 'First Country',
                              //  ShipName: 'Ship Name',
                              //  ShipAddress: 'SHip Address'
                              //}],
                            data: [],
                              pageSize: 10
                          },
                        noRecords: {
      template: "No data available on current page."
    },
  
                          scrollable: false,
                          sortable: true,
                          pageable: true,
                          columns: [
                              { field: "OrderID", width: "110px", footerTemplate: 'This is footer.' },
                              { field: "ShipCountry", title:"Ship Country", width: "110px" },
                              { field: "ShipAddress", title:"Ship Address" },
                              { field: "ShipName", title: "Ship Name", width: "300px" }
                          ]
                      });
                  }
  
  
              &lt;/script&gt;
          &lt;/div&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Below sample has static footer while in my application I am binding aggregate functions. Here is the <a href="https://dojo.telerik.com/IfuFo/2" rel="nofollow noreferrer">dojo</a> for the implementation. Am I doing something wrong or this is kendo API related issue?</p>