Hi, I have a simple column that displays a numeric value in box colored text. I use a shared component for that.
Like:
<kendo-grid-column field="{{ col.field }}" title="{{ col.title }}" format="{{ col.gridFormat }}" [width]="col.width" [hidden]="!col.gridVisible" media="{{ col.media }}">
@if (col.field == 'statut') {
<ng-template kendoGridCellTemplate let-dataItem="dataItem">
{{ dataItem.statut }}
<share-app-statut [statut]="dataItem.statut"></share-app-statut>
</ng-template>
}
</kendo-grid-column>
Everything works well until I change some filters then the grid updates. All the fields change except the component in the template (but the numerical value changes we can see it with the {{dataitem.statut}}. The only way I can force the grid to redraw the template component is to set the data to null before setting a new value. (I use a signal to feed the grid). So a:
this.data.set(null);
this.data.set([......]); work!
But the grid flash... I am new with template inside grid, What do I do wrong?