|
load() { //load event of Grid
(this.showRankingColumn as any) = true;
(this.showLocationColumn as any) = true;
console.log("Ranking Column Visible", this.showRankingColumn);
console.log("Location Column Visible", this.showLocationColumn);
}
|
|
ngOnInit() {
Observable.defer(async () => {
(this as any).showRankingColumn = await this.promiseDelay(true, 500);
(this as any).showLocationColumn = await this.promiseDelay(true, 500);
}).subscribe(x => {
setTimeout(() => {
var grid = (document.getElementsByClassName('e-grid')[0] as any).ej2_instances[0];
grid.refreshColumns(); //call refresh columns for UI changes
});
}
);
}
|