Category : primeng-datatable

how to show or hide edit button based when column srcSysName value = "ANO" in p-table Here is the code <ng-template pTemplate="body" let-ACC_LIST let-editing="editing" let-ri="rowIndex"> <tr [pEditableRow]="ACC_LIST"> <td> {{ACC_LIST.accntNum}} </td> <td> <p-cellEditor> <ng-template pTemplate="input"> <input pInputText type="text" [(ngModel)]="ACC_LIST.shortName"> </ng-template> <ng-template pTemplate="output"> {{ACC_LIST.shortName}} </ng-template> </p-cellEditor> </td> <td>{{ACC_LIST.srcSysName}}</td> <td style="text-align:center"> <button *ngIf="!editing" pButton pRipple type="button" pInitEditableRow icon="pi ..

Read more

I have an application generated using Jhipster PrimeNG Blueprint. It enables table filtering using ‘filters’ as this.myTable.filters.filterField.value Since filters definition in table.ds has been updated from @Input() filters: { [s: string]: FilterMetadata; } = {}; to filters: { [s: string]: FilterMetadata | FilterMetadata[]; }; on upgrading app to v11 is breaking giving error Property ‘value’ ..

Read more

I am working on an Angular application using PrimeNG. In particular I am using the PrimeNG p-table component and I am finding some problem with Global Search. This is the component: https://www.primefaces.org/primeng/showcase/#/table This is my HTML code related to my table: <p-table #dtEmployee [value]="employeesList$ | async" [(selection)]="selectedEmployees" dataKey="id" styleClass="p-datatable-employees" [rowHover]="true" [rows]="10" [showCurrentPageReport]="true" [rowsPerPageOptions]="[10,25,50]" [loading]="loading" [paginator]="true" ..

Read more

I am trying to build my lib with –prod so i can publish it. I am getting following error: Directive SelectableRow, Expected 0 arguments, but got 1. mycomponent.ts <p-table [value]="values" selectionMode="single"> <ng-template pTemplate="body" let-data> <tr [pSelectableRow]="data"> —> HERE IS THE ERROR!!! … According to primeng this should be fine. Primeng example: <p-table [value]="products" selectionMode="single" [(selection)]="selectedProduct1" ..

Read more

I am working on an Angular project using a PrimeNG (10.0.3) Table, this component: https://www.primefaces.org/primeng/showcase/#/table And I am finding some problem trying to filter a column representing a Date field (the other columns are correctly filtered). This is what I obtained (the highlighted filter is the one that is not working): Basically I am trying ..

Read more