title: Exclude last columns while export to pdf - Angular 6 Kendo
body: <p>i am trying to exclude last column while exporting grid to pdf.</p>
  
  <p>This is my pdf export component that i am using it in different components.<br>
  This app kendo pdf component </p>
  
  <pre><code>&lt;kendo-grid-pdf fileName="{{pdfname}}" [allPages]="true" paperSize="A4" [repeatHeaders]="true" [landscape]="true" &gt;
    &lt;kendo-grid-pdf-margin top="2cm" left="1cm" right="1cm" bottom="2cm"&gt;&lt;/kendo-grid-pdf-margin&gt;
    &lt;ng-template kendoGridPDFTemplate let-pageNum="pageNum" let-totalPages="totalPages"&gt;
     &lt;div class="page-template"&gt;
        &lt;div class="header"&gt;
          &lt;div style="float: right"&gt;Page {{ pageNum }} of {{ totalPages }}&lt;/div&gt;
         {{componentName}}
        &lt;/div&gt;
        &lt;div class="footer"&gt;
          Page {{ pageNum }} of {{ totalPages }}
        &lt;/div&gt;
      &lt;/div&gt;
  
    &lt;/ng-template&gt;
  &lt;/kendo-grid-pdf&gt;
  &lt;kendo-grid-excel fileName="{{pdfname}}"&gt;&lt;/kendo-grid-excel&gt;
  </code></pre>
  
  <p>This a grid that i want to export : </p>
  
  <pre><code>&lt;kendo-grid [data]="gridData" [height]="409" [pageSize]="state.take"
  [skip]="state.skip"
  [sort]="state.sort"
  [filter]="state.filter"
  [sortable]="true"
  [pageable]="true"
  [filterable]="true"
  (dataStateChange)="dataStateChange($event)"&gt;
  &lt;ng-template kendoGridToolbarTemplate&gt;
    &lt;button class="kendo-pdf" kendoGridPDFCommand icon="file-pdf"&gt;Export to PDF&lt;/button&gt;
    &lt;button class="kendo-excel" type="button" kendoGridExcelCommand icon="file-excel"&gt;Export to Excel&lt;/button&gt;
  &lt;/ng-template&gt;
    &lt;kendo-grid-column field="name" title="Name" width="50" filter="text" format="{0:c}"&gt;
    &lt;/kendo-grid-column&gt;
    &lt;kendo-grid-column field="age" title="Age" width="50" filter="numeric" format="{0:c}"&gt;
    &lt;/kendo-grid-column&gt;
    &lt;kendo-grid-column field="city" title="City" width="50"&gt;
    &lt;/kendo-grid-column&gt;
    &lt;kendo-grid-column width="20" field="Edit / Delete" filter="false"&gt;
        &lt;ng-template kendoGridCellTemplate let-dataItem  &gt;
          &lt;a (click)="showConfirmation()"&gt; &lt;i class="fa fa-trash" &gt;&lt;/i&gt;&lt;/a&gt;
          &lt;a [routerLink]="['/addEmployee']" routerLinkActive="router-link-active"  &gt; &lt;i class="fa fa-edit"&gt;&lt;/i&gt;&lt;/a&gt;
        &lt;/ng-template&gt;
    &lt;/kendo-grid-column&gt;  
    &lt;app-kendoPDF [componentName]=name&gt;&lt;/app-kendoPDF&gt;
  </code></pre>
  
  <p>I want to exclude edit/delete field while exporting</p>
  
  <p><strong>Edit : This what i tried but didn't work</strong></p>
  
  <p>in order components : </p>
  
  <pre><code>kendo-grid [data]="gridData" [height]="409" [pageSize]="state.take" [skip]="state.skip" [sort]="state.sort" [filter]="state.filter"
    [sortable]="true" [pageable]="true" [filterable]="true" (dataStateChange)="dataStateChange($event)"&gt;
    &lt;ng-template kendoGridToolbarTemplate&gt;
      &lt;button  class="kendo-pdf" kendoGridPDFCommand icon="file-pdf"&gt;Export to PDF&lt;/button&gt;
      &lt;button class="kendo-excel" type="button" kendoGridExcelCommand icon="file-excel"&gt;Export to Excel&lt;/button&gt;
    &lt;/ng-template&gt;
    &lt;kendo-grid-column field="orderNumber" title="Order Number" width="20" filter="text"&gt;
    &lt;/kendo-grid-column&gt;
    &lt;kendo-grid-column field="orderTable" title="Order Table" width="20" filter="text" format="{0:c}"&gt;
    &lt;/kendo-grid-column&gt;
  &lt;app-kendoPDF [componentName]=name&gt;
      &lt;kendo-grid-column field="orderNumber" title="Order Number"&gt;
      &lt;/kendo-grid-column&gt;
      &lt;kendo-grid-column field="orderTable" title="Order Table"&gt;
      &lt;/kendo-grid-column&gt;
  &lt;/app-kendoPDF&gt;
  &lt;/kendo-grid&gt;
  </code></pre>
  
  <p>KendoPdf Component : </p>
  
  <pre><code>&lt;kendo-grid-pdf fileName="{{pdfname}}" [allPages]="true" paperSize="A4" [repeatHeaders]="true" [landscape]="true" &gt;
    &lt;kendo-grid-pdf-margin top="2cm" left="1cm" right="1cm" bottom="2cm"&gt;&lt;/kendo-grid-pdf-margin&gt;
    &lt;ng-template kendoGridPDFTemplate let-pageNum="pageNum" let-totalPages="totalPages"&gt;
     &lt;div class="page-template"&gt;
        &lt;div class="header"&gt;
          &lt;div style="float: right"&gt;Page {{ pageNum }} of {{ totalPages }}&lt;/div&gt;
         {{componentName}}
        &lt;/div&gt;
        &lt;div class="footer"&gt;
          Page {{ pageNum }} of {{ totalPages }}
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/ng-template&gt;
    &lt;ng-content&gt;&lt;/ng-content&gt;
  &lt;/kendo-grid-pdf&gt;
  &lt;kendo-grid-excel fileName="{{pdfname}}"&gt;&lt;/kendo-grid-excel&gt;
  </code></pre>