2016-12-01 118 views
6

我試圖Excel導出功能添加到劍道UI角2格,但得到一個錯誤,而角2應用程序加載:劍道UI角2格Excel導出

Can't bind to 'toolbar' since it isn't a known property of 'kendo-grid'. 

這裏是代碼片段我正在使用:

<kendo-grid [data]="gridView" [height]="700" [pageSize]="pageSize" 
         [toolbar]="['excel']" 
         [excel]="{fileName: 'Reprocessingdetails.xlsx'}" 
         [skip]="skip" 
          [pageable]="{ 
          info: true, 
          type: 'input', 
          pageSizes: false, 
          previousNext: true 
          }" 
          [scrollable]="'none'" 
          (pageChange)="pageChange($event)" 
          [sortable]="{ mode: 'single', allowUnsort: true }" 
          [sort]="sort" 
          (sortChange)="reprocessingResultsSortChange($event)" 
         > 
       <kendo-grid-column field="isSelected" title="Select"> 
        <template kendoCellTemplate let-dataItem> 
         <input type="checkbox" [(ngModel)]="dataItem.isSelected" /> 
        </template> 
       </kendo-grid-column> 
       <kendo-grid-column field="reprocessingType" title="Reprocessing Type"> 
       </kendo-grid-column> 


      </kendo-grid> 

Excel導出功能在路線圖中沒有提及,那麼假設它已經存在是否公平?如果是這樣,我如何使上面的代碼片段工作?任何幫助?

回答

0

目前,Kendo UI Grid for Angular 2不支持Excel導出。工具欄通過ToolbarComponent進行設置,該目前使用ng-content投影內容。你可以看到所有這些在docs

+0

嗨@knikolov,謝謝你的確認。這會在2017年1月更新嗎?我目前正在開展一項遷移項目,該項目要求這些功能從以前的基於Silverlight的解決方案中繼承。 (列菜單(篩選和列選擇器)和導出功能) –

+0

不計劃在1月發佈。 – knikolov

+0

所有提到的功能都暫定計劃於2017年5月完成。我們經常發佈,因此請關注此處的更新日誌http://www.telerik.com/kendo-angular-ui/components/grid/changelog/ –