datatable lazy loading indicator

UI Components for Angular
Post Reply
dsoltesz
Posts: 63
Joined: 03 May 2016, 04:42

13 Sep 2017, 16:55

I have a datatable with lazy loading turned on. When the page first loads and there is no data to display the loading indicator never goes away until I actually load some data. I tried to set [loading]="false" to override but no luck. I'm on the latest version 4.2
Last edited by dsoltesz on 13 Sep 2017, 17:08, edited 1 time in total.

dsoltesz
Posts: 63
Joined: 03 May 2016, 04:42

13 Sep 2017, 17:07

temp work around

Code: Select all

public ngAfterViewInit() {
        setTimeout(() => {
            this.programs = []
        }, 1000)
        
    }

poonehmousavi
Posts: 4
Joined: 24 Sep 2017, 09:43

24 Sep 2017, 09:57

I have the same problem when updating mu primeng to ^4.2.1 ,first time the data want to load , the loading icon doesn't go away.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Sep 2017, 19:01

In lazy mode, you don't need to deal with loading prop, it handles it internally. If you have your own loader you can disabled the built-in one with [enableLoader]="false". dsoltesz is a PRO user and he reported it as fixed in 4.2.1.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests