Hi, I just want to ask if you can help about the loader of primeng table. On azure website the loader is hiding too fast even the table is not yet populated. But on local machine using the same database connection it is not happening. Hope you can help me with this. Heres an snippet of the code:
ts file:
getTagTypes(event?: LazyLoadEvent) {
if (this.primengTableHelper.shouldResetPaging(event)) {
this.paginator.changePage(0);
return;
}
this.primengTableHelper.showLoadingIndicator();
this._tagTypeAppService.getTagType(
undefined,
this.filterText,
this.primengTableHelper.getSorting(this.dataTable),
this.primengTableHelper.getMaxResultCount(this.paginator, event),
this.primengTableHelper.getSkipCount(this.paginator, event)
).pipe(finalize(() => this.primengTableHelper.hideLoadingIndicator() ))
.subscribe(result => {
this.primengTableHelper.totalRecordsCount = result.totalCount;
this.primengTableHelper.records = result.items;
this.primengTableHelper.hideLoadingIndicator();
});
}
7 Answer(s)
-
0
Hi,
Could you try to remove below line from subscribe function and try again ?
this.primengTableHelper.hideLoadingIndicator();Thanks,
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
already did it, but no luck. it just happen after the upgrade to aspnetzero 7.1.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks @mark.montesa
Is it possible to share your app url with [email protected] to check it ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Email sent.
Thanks.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
hi,
any update on this question?? thanks.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
We will replace current loader with another one. You can follow this issue https://github.com/aspnetzero/aspnet-zero-core/issues/2682 or you can use it in your project before we implement it.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
1
thanks will follow the thresd for updates
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)