title: How to show and hide Detail Row in Kendo Grid with Angular 2
body: <p>I have an angular 2 kendo grid component that looks like this </p>
  
  <pre><code>&lt;kendo-grid [data]="gridView"
          [selectable]="true"
          [pageSize]="pageSize"
          [skip]="skip"
          [pageable]="true"
          [sortable]="{ mode: 'multiple' }"
          [sort]="sort"
          (pageChange)="pageChange($event)"&gt;
  &lt;kendo-grid-column Title="Select"&gt;
      &lt;template kendoCellTemplate let-dataItem&gt;
          &lt;input type="checkbox" (change)="onContactsSelect(dataItem.accountId, $event)"/&gt;            
      &lt;/template&gt;        
  &lt;/kendo-grid-column&gt;
  
  &lt;kendo-grid-column field="accountId" title="{{result.accountColumn}}" &gt;&lt;/kendo-grid-column&gt;
  &lt;kendo-grid-column field="name" title="{{result.nameColumn}}"&gt;&lt;/kendo-grid-column&gt;
  &lt;kendo-grid-column field="address" title="{{result.addesssColumn}}"&gt;&lt;/kendo-grid-column&gt;
  &lt;kendo-grid-column field="state" title="{{result.statusColumn}}"&gt;&lt;/kendo-grid-column&gt;
  &lt;kendo-grid-column field="customField1" title="{{result.customField1Column}}"&gt;&lt;/kendo-grid-column&gt;
  &lt;kendo-grid-column field="customField2" title="{{result.customField2Column}}"&gt;&lt;/kendo-grid-column&gt;
  &lt;kendo-grid-column field="timeStamp" title="{{result.timeStampColumn}}"&gt;&lt;/kendo-grid-column&gt;   
  &lt;template kendoDetailTemplate let-dataItem&gt;
          &lt;section *ngIf="!dataItem.isValid"&gt;
              &lt;article&gt;{{dataItem.errorMessage}}&lt;/article&gt;
          &lt;/section&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p></p>
  
  <p>I do want to show the detail row  (and the details k-plus and k-minus signs to toggle between open and closing the detailed row) only when there is an error message or only when the dataitem is invalid. </p>
  
  <p>Right now the toggle buttons appear on all rows regardless of the dataitem is valid or not. </p>
  
  <p>Any pointers would be helpful. </p>