Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147783 | Sep 24,2019 07:46 AM UTC | Sep 27,2019 07:30 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Grid |
...
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;
}
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.