在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 –