BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
...
export class AppComponent {
public data: Object[] = [];
@ViewChild('grid', { static: true }) public grid: GridComponent;
public initial: boolean = true;
ngOnInit(): void {
this.data = [
{ OrderID: 1, CustomerID: 'VINET', Freight: 32.3800, OrderDate: '1996-07-02T00:00:00.000Z', City: 'Paris', Price: 300 },
...
];
}
dataBound(args: any) {
if (this.initial) {
for (const cols of this.grid.columns) {
...
}
this.grid.refreshColumns();
this.initial = false;
}
}
} |