NG-Prime p-table paginator only shows number of hits as much [rows] are setng-table not paginating table content, Only showing page numbersangular 2 error : zone.js:484 Unhandled Promise rejection: Template parse errorsNgPrime turbo table set current page number on data refresh?Prime-NG P-CHIPS Numbers only for Array of NumbersHow to hide / show p-column in prime ng table in angular?Angular - PrimeNG not consistent with number of rows in paginationWebservice with pagination but don't show row numberExtended primeng table doesn't show the rows of tableSet minimum row in PrimeNG p-tableHow to show progress bar in different colors for the rows using prime ng progress bar in angular2

Why Were Madagascar and New Zealand Discovered So Late?

Personal Teleportation as a Weapon

How do we know the LHC results are robust?

Opposite of a diet

At which point does a character regain all their Hit Dice?

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

Bash method for viewing beginning and end of file

There is only s̶i̶x̶t̶y one place he can be

Is it correct to write "is not focus on"?

How can I use the arrow sign in my bash prompt?

Stereotypical names

Everything Bob says is false. How does he get people to trust him?

The plural of 'stomach"

Is there a good way to store credentials outside of a password manager?

Student evaluations of teaching assistants

Lay out the Carpet

Modify casing of marked letters

The baby cries all morning

What are the ramifications of creating a homebrew world without an Astral Plane?

Go Pregnant or Go Home

when is out of tune ok?

Is expanding the research of a group into machine learning as a PhD student risky?

Is exact Kanji stroke length important?

Is a roofing delivery truck likely to crack my driveway slab?



NG-Prime p-table paginator only shows number of hits as much [rows] are set


ng-table not paginating table content, Only showing page numbersangular 2 error : zone.js:484 Unhandled Promise rejection: Template parse errorsNgPrime turbo table set current page number on data refresh?Prime-NG P-CHIPS Numbers only for Array of NumbersHow to hide / show p-column in prime ng table in angular?Angular - PrimeNG not consistent with number of rows in paginationWebservice with pagination but don't show row numberExtended primeng table doesn't show the rows of tableSet minimum row in PrimeNG p-tableHow to show progress bar in different colors for the rows using prime ng progress bar in angular2













0















I have an issue with NG-Prime's p-table paginator.



I have 27 hits as of now which came from an API call which is done like:



 getUsers() {
this.usersList = <PrivilegedEditUserDTO[]>[];
this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
resp.forEach(user => this.usersList.push(user));
);


I've set it up like it's made in the documentation, but it only shows the exact amount of hits as [rows] are set. I only have 1 page with 10 hits however usersList?.length shows 27 which is correct btw.
Any hints how can I fix this?



 <p-table [columns]="cols"
[value]="usersList"
selectionMode="single"
(onRowSelect)="onRowSelect($event)"
dataKey="status"
[responsive]="true"
[paginator]="true"
[rows]="10"
paginatorPosition="both">
<ng-template pTemplate="caption">
Lis of Users [usersList?.length]
</ng-template>
<ng-template pTemplate="header"
let-columns>
<tr>
<th *ngFor="let col of columns"
[pSortableColumn]="col.field">
col.header
<p-sortIcon [field]="col.field"></p-sortIcon>
</th>
<th style="width:4.5em"></th>
</tr>
</ng-template>
<ng-template pTemplate="body"
let-rowData
let-columns="columns">
<tr [pSelectableRow]="rowData">
<td *ngFor="let col of columns">
rowData[col.field]
</td>
<td>
<button pButton
type="button"
class="ui-button-danger"
icon="pi pi-times"
(click)="deleteUser(rowData)"></button>
</td>
</tr>
</ng-template>
</p-table>


EDIT:!!



To fix my issue all i needed to do is the following:



getUsers() {
this.usersList = <PrivilegedEditUserDTO[]>[];
this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
this.usersList = resp;
);









share|improve this question




























    0















    I have an issue with NG-Prime's p-table paginator.



    I have 27 hits as of now which came from an API call which is done like:



     getUsers() {
    this.usersList = <PrivilegedEditUserDTO[]>[];
    this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
    resp.forEach(user => this.usersList.push(user));
    );


    I've set it up like it's made in the documentation, but it only shows the exact amount of hits as [rows] are set. I only have 1 page with 10 hits however usersList?.length shows 27 which is correct btw.
    Any hints how can I fix this?



     <p-table [columns]="cols"
    [value]="usersList"
    selectionMode="single"
    (onRowSelect)="onRowSelect($event)"
    dataKey="status"
    [responsive]="true"
    [paginator]="true"
    [rows]="10"
    paginatorPosition="both">
    <ng-template pTemplate="caption">
    Lis of Users [usersList?.length]
    </ng-template>
    <ng-template pTemplate="header"
    let-columns>
    <tr>
    <th *ngFor="let col of columns"
    [pSortableColumn]="col.field">
    col.header
    <p-sortIcon [field]="col.field"></p-sortIcon>
    </th>
    <th style="width:4.5em"></th>
    </tr>
    </ng-template>
    <ng-template pTemplate="body"
    let-rowData
    let-columns="columns">
    <tr [pSelectableRow]="rowData">
    <td *ngFor="let col of columns">
    rowData[col.field]
    </td>
    <td>
    <button pButton
    type="button"
    class="ui-button-danger"
    icon="pi pi-times"
    (click)="deleteUser(rowData)"></button>
    </td>
    </tr>
    </ng-template>
    </p-table>


    EDIT:!!



    To fix my issue all i needed to do is the following:



    getUsers() {
    this.usersList = <PrivilegedEditUserDTO[]>[];
    this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
    this.usersList = resp;
    );









    share|improve this question


























      0












      0








      0








      I have an issue with NG-Prime's p-table paginator.



      I have 27 hits as of now which came from an API call which is done like:



       getUsers() {
      this.usersList = <PrivilegedEditUserDTO[]>[];
      this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
      resp.forEach(user => this.usersList.push(user));
      );


      I've set it up like it's made in the documentation, but it only shows the exact amount of hits as [rows] are set. I only have 1 page with 10 hits however usersList?.length shows 27 which is correct btw.
      Any hints how can I fix this?



       <p-table [columns]="cols"
      [value]="usersList"
      selectionMode="single"
      (onRowSelect)="onRowSelect($event)"
      dataKey="status"
      [responsive]="true"
      [paginator]="true"
      [rows]="10"
      paginatorPosition="both">
      <ng-template pTemplate="caption">
      Lis of Users [usersList?.length]
      </ng-template>
      <ng-template pTemplate="header"
      let-columns>
      <tr>
      <th *ngFor="let col of columns"
      [pSortableColumn]="col.field">
      col.header
      <p-sortIcon [field]="col.field"></p-sortIcon>
      </th>
      <th style="width:4.5em"></th>
      </tr>
      </ng-template>
      <ng-template pTemplate="body"
      let-rowData
      let-columns="columns">
      <tr [pSelectableRow]="rowData">
      <td *ngFor="let col of columns">
      rowData[col.field]
      </td>
      <td>
      <button pButton
      type="button"
      class="ui-button-danger"
      icon="pi pi-times"
      (click)="deleteUser(rowData)"></button>
      </td>
      </tr>
      </ng-template>
      </p-table>


      EDIT:!!



      To fix my issue all i needed to do is the following:



      getUsers() {
      this.usersList = <PrivilegedEditUserDTO[]>[];
      this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
      this.usersList = resp;
      );









      share|improve this question
















      I have an issue with NG-Prime's p-table paginator.



      I have 27 hits as of now which came from an API call which is done like:



       getUsers() {
      this.usersList = <PrivilegedEditUserDTO[]>[];
      this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
      resp.forEach(user => this.usersList.push(user));
      );


      I've set it up like it's made in the documentation, but it only shows the exact amount of hits as [rows] are set. I only have 1 page with 10 hits however usersList?.length shows 27 which is correct btw.
      Any hints how can I fix this?



       <p-table [columns]="cols"
      [value]="usersList"
      selectionMode="single"
      (onRowSelect)="onRowSelect($event)"
      dataKey="status"
      [responsive]="true"
      [paginator]="true"
      [rows]="10"
      paginatorPosition="both">
      <ng-template pTemplate="caption">
      Lis of Users [usersList?.length]
      </ng-template>
      <ng-template pTemplate="header"
      let-columns>
      <tr>
      <th *ngFor="let col of columns"
      [pSortableColumn]="col.field">
      col.header
      <p-sortIcon [field]="col.field"></p-sortIcon>
      </th>
      <th style="width:4.5em"></th>
      </tr>
      </ng-template>
      <ng-template pTemplate="body"
      let-rowData
      let-columns="columns">
      <tr [pSelectableRow]="rowData">
      <td *ngFor="let col of columns">
      rowData[col.field]
      </td>
      <td>
      <button pButton
      type="button"
      class="ui-button-danger"
      icon="pi pi-times"
      (click)="deleteUser(rowData)"></button>
      </td>
      </tr>
      </ng-template>
      </p-table>


      EDIT:!!



      To fix my issue all i needed to do is the following:



      getUsers() {
      this.usersList = <PrivilegedEditUserDTO[]>[];
      this.userService.findPrivilegedUsersUsingGET().subscribe(resp =>
      this.usersList = resp;
      );






      angular pagination primeng primeng-turbotable






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 13:14







      Alex Bene

















      asked Mar 7 at 11:57









      Alex BeneAlex Bene

      677




      677






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55043224%2fng-prime-p-table-paginator-only-shows-number-of-hits-as-much-rows-are-set%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55043224%2fng-prime-p-table-paginator-only-shows-number-of-hits-as-much-rows-are-set%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко