ngx-pagination icon indicating copy to clipboard operation
ngx-pagination copied to clipboard

pagination control "next" is visble after page gets loaded even if there is no data present in tha table.

Open ajinkyabapat1 opened this issue 5 years ago • 7 comments

Angular version: 7.2.15

ngx-pagination version:^3.2.1

Description of issue:

Pagination control "next " iss visble after the page gets loaded and even if there is no data presnt in table.

Steps to reproduce:

Expected result: next contol should be hidden similar to previous after page gets loaded for the first time. and if no data avaliable

Actual result: next control is visble after the application loaded for the first time <pagination-controls id="listing_pagination" maxSize="" directionLinks="true" (pageChange)="page = $event" [autoHide]="false" >

**Demo**: (if possible, edit [this StackBlitz demo](https://stackblitz.com/edit/angular-e1f9hq) and paste the link to your fork)

image

here after clciking on search i am getting data , but pagination "next" contol is visble before fetching the data in the table Any relevant code:


ajinkyabapat1 avatar Apr 09 '20 09:04 ajinkyabapat1

Hi, can you make a StackBlitz reproduction please? https://stackblitz.com/edit/angular-e1f9hq

michaelbromley avatar Apr 09 '20 14:04 michaelbromley

No it is not possible to create stackblitz project, because it's my private organisation project. But I have explained the issue ,I guess

On Thu, Apr 9, 2020, 7:35 PM Michael Bromley [email protected] wrote:

Hi, can you make a StackBlitz reproduction please? https://stackblitz.com/edit/angular-e1f9hq

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michaelbromley/ngx-pagination/issues/355#issuecomment-611546207, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZFJO2VFQ2WDXZRY6HJYDTRLXI2PANCNFSM4MES3OXQ .

ajinkyabapat1 avatar Apr 10 '20 05:04 ajinkyabapat1

I don't mean you need to reveal proprietary code, just a minimal reproduction that demonstrates the issue. Otherwise I would have to create the reproduction myself in order to ascertain what the problem is. This may take some time as it is not a high priority for me right now.

michaelbromley avatar Apr 10 '20 06:04 michaelbromley

Ok..I will try to setup a project ,but this is major bug o think , after getting page load ,pagination indicator next is visible without having data.

On Fri, Apr 10, 2020, 12:16 PM Michael Bromley [email protected] wrote:

I don't mean you need to reveal proprietary code, just a minimal reproduction that demonstrates the issue. Otherwise I would have to create the reproduction myself in order to ascertain what the problem is. This may take some time as it is not a high priority for me right now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michaelbromley/ngx-pagination/issues/355#issuecomment-611904016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZFJOYW4LFEFETR6KIJC6TRL26CRANCNFSM4MES3OXQ .

ajinkyabapat1 avatar Apr 10 '20 06:04 ajinkyabapat1

Yes it is showing Next button visible but no data in table

shubh48 avatar Jul 08 '20 08:07 shubh48

same issue i am pursuing

patidarpavan007 avatar Mar 25 '21 10:03 patidarpavan007

Hello,

I have added a condition to handle that problem. <pagination-controls *ngIf="myList?.length>0" (pageChange)="recordingHandlePageChange($event)">

patidarpavan007 avatar Mar 25 '21 10:03 patidarpavan007