Questions tagged [primeng-datatable]

Questions about the PrimeNG DataTable component from PrimeTek Informatics.

Useful Links

474 questions
1
vote
0 answers

prime Ng date filter is not working returns only an error

i'm recieving data from an api which has a date and i'm using primeng table components to display this data all filters are working fine, only date filter is not working i'm using date pipe to transform the string date into a date before displaying…
1
vote
0 answers

P-Table In PrimeNG is triggering Multiple Call onRowSelection. I am making an API call on row selection and hence This is Impacting my performace

I am using p-table along with checkboxes for rowSelection. On Selection Of every checkbox I need to Call API And fetch Data. Below is my code for Declaring table. On Check of row, event is triggered multiple Times, IdeallY it should trigger only On…
Nishit
  • 61
  • 1
  • 8
1
vote
0 answers

StackBlitz and PrimeNg

I am putting a demo for a client using StackBlitz StackBlitz The error being shown is Error in /turbo_modules/primeng@14.1.2/fesm2015/primeng-table.mjs (4051:169) can't access lexical declaration 'ColumnFilter' before initialization I am not using…
software is fun
  • 7,286
  • 18
  • 71
  • 129
1
vote
2 answers

How to add a new editable row in primeng?

I want create a new editable row by default when clicking "ADD NEW button". like below screen shot. When I click "+" button a new row will create. once I edit that row and click "done" button the new row will submit. I have tries below code. a new…
hanushi
  • 1,169
  • 2
  • 12
  • 27
1
vote
1 answer

Angular p-dataTable Selection doesn't get updated on model update

From my Angular code, I'm calling a synchronous method where there is an asynchronous call to a service(myService) which sets the value of a variable(myVariable) inside it. This variable myVariable in turn is bound with a p-datatable object like…
The Inquisitive Coder
  • 1,085
  • 3
  • 20
  • 43
1
vote
1 answer

How do I automatically refresh my PrimeNG table from data from my ngrx/data service?

I'm using Angular 13 and ngrx/data, store and entity (v.13). I have set up my ngrx/data service export class MyObjService extends DefaultDataService { ... } and then a component using PrimeNg. I have a table to display all my…
Dave
  • 15,639
  • 133
  • 442
  • 830
1
vote
0 answers

Angular p-paginator bug with pages and rows

In my backed application (Spring boot), I have a method who get a Pageable (page and size) when I implement my table in angular, when I pass just the page with the normal size of rows are ok, but when I change the rows it will get a random page…
Sonn
  • 89
  • 8
1
vote
0 answers

Angular PrimeNG p-table: add custom sorting function with multiple values to a specific column

I am using PrimeNG's p-table. The table currently has default sorting on two column but the third column data is like it should sort by Status (High, Medium, Low). Now I need to implement sorting on this column but that has to be a custom-logic…
C.Das
  • 87
  • 2
  • 12
1
vote
1 answer

Primeng Table - is it possible to combine scrolling in both directions AND virtual scrolling?

Is it possible to use the table with scrolling in both directions AND virtual scrolling? E.G. if I use:
1
vote
0 answers

PrimeNg table row grouping and virtual scrolling

Row Group feature works well until I set virtual scrolling to true it stops working. I inspected the table element and found that the group header row totally disappears in virtual scrolling mode. I forked PrimeNg Stackblitz demo with…
Hoàng Nguyễn
  • 1,121
  • 3
  • 33
  • 57
1
vote
1 answer

Error when using Nx with PrimeNG table component

I created a brand new Nx workspace using npx create-nx-workspace@latest and installed PrimeNG using npm install primeng --save Then, I tried to import TableModule in app.module.ts file of the generated app: import { TableModule } from…
Daud
  • 7,429
  • 18
  • 68
  • 115
1
vote
2 answers

How to retrigger filters on data update in PrimeNG tables?

If I add some rows to the table, the table view gets dynamically updated, but the filters I apply reflect only initial data. For eg, if I apply the filter "startsWith" on a header called "Title" with a filter value of "zaalim", then if the initial…
Daud
  • 7,429
  • 18
  • 68
  • 115
1
vote
3 answers

how to get data table row data/object using Splitbutton from primereact

I am pretty new to ReactJs & trying to make a project to learn. I am using PrimeReact UI Component Library. Everything is working fine but facing issue with accessing row data into functions. Reference -…
1
vote
1 answer

primeng column filter on match mode change

I have a table with filters, defined as such:
klemen kobau
  • 117
  • 2
  • 11
1
vote
1 answer

Two Scrolls Appearing on primeng table page

I have a normal prime Ng table which is scrollable vertically. However, if the screen size is too small, I end up with the normal page scroll aswell as the table scroll. Is there a way around this? To make the table the size of whatever the screen…
Pippa97
  • 79
  • 1
  • 12