Base solution for your next web application
Open Closed

Loader hiding too fast #7643


User avatar
0
mark.montesa created

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();
    });
}
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you try to remove below line from subscribe function and try again ?

    this.primengTableHelper.hideLoadingIndicator();

    Thanks,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mark.montesa created

    already did it, but no luck. it just happen after the upgrade to aspnetzero 7.1.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @mark.montesa

    Is it possible to share your app url with [email protected] to check it ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mark.montesa created

    Email sent.

    Thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mark.montesa created

    hi,

    any update on this question?? thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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 supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    1
    mark.montesa created

    thanks will follow the thresd for updates

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)