简体   繁体   English

Angular Kendo UI Grid递归加载Detail Grid

[英]Angular Kendo UI Grid recursively load with Detail Grid

I am using Angular Kendo UI and having troubles to integrate a Grid, loaded recursively with a Detail Grid. 我正在使用Angular Kendo UI,并且在集成网格时遇到麻烦,该网格以递归方式加载到明细网格中。

I have this example https://stackblitz.com/edit/angular-ior6b8 and want to avoid that the second Grid load data or blink every time the first Grid is updated and maintan on the second Grid the resizable columns property. 我有一个示例https://stackblitz.com/edit/angular-ior6b8,并希望避免第二个Grid加载数据或每次更新第一个Grid并在第二个Grid上维护可调整大小的列属性时闪烁。

The problem is that every load of the first Grid, makes the detail component is removed and created again. 问题在于,第一个Grid的每次加载都会使局部组件被删除并再次创建。

Instead of div block shown below. 而不是下面显示的div块。

<div *kendoGridDetailTemplate="let dataItem">
     <category-details [category]="dataItem"></category-details>
</div>

Replace with ng-template. 替换为ng-template。

<ng-template kendoGridDetailTemplate let-dataItem>
    <category-details [category]="dataItem"></category-details>
</ng-template>

Are you refreshing the details templates data using any timer? 您是否正在使用任何计时器刷新详细信息模板数据?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM