在Angular 2 Kendo網格中,當用戶打開詳細模板時,我需要在每個單元格中顯示其他信息。 在Kendo Grid for jQuery中,我可以使用detailinit(http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-detailInit)事件來完成我所需要的事情,但是,Angular2組件中沒有這樣的事件。在Angular 2 Kendo網格中替代detailinit事件
<kendo-grid-column>
<template kendoCellTemplate let-dataItem let-rowIndex="rowIndex">
{{rowIndex}}
<div *ngIf="????">
Need to show this text when detail template is visible
and hide when it's hidden
</div>
</template>
</kendo-grid-column>
<template kendoDetailTemplate let-dataItem>
<section *ngIf="dataItem.Category">
<header>{{dataItem.Category?.CategoryName}}</header>
<article>{{dataItem.Category?.Description}}</article>
</section>
</template>
Here is an example我需要什麼(請在單元格中的文本)。
歡迎來到Stack Overflow!要求我們推薦或查找書籍,工具,軟件庫,教程或其他非現場資源的問題與Stack Overflow無關,因爲它們傾向於吸引自以爲是的答案和垃圾郵件。相反,[描述問題](http://meta.stackoverflow.com/questions/254393)以及迄今爲止已經做了什麼來解決它。 –
@JoeC這個問題不是關於建議,而是關於如何使用Kendo UI的Angular 2 –