Questions tagged [primeng-datatable]

Questions about the PrimeNG DataTable component from PrimeTek Informatics.

Useful Links

474 questions
1
vote
2 answers

PrimeNg: async pipe doesn't subscribe to Observable

I've this Observable: public adminUsers$: Observable>; I'm trying to use async pipe in order to subscribe to it: ... …
Jordi
  • 20,868
  • 39
  • 149
  • 333
1
vote
1 answer

PrimeNg TurboTable - Conditional Row-grouping

I am using PrimeNG's TurboTable (p-table) I have a groupField parameter, which can either be null or have a value corresponding to a column header. This param's value can be changed dynamically at any time. The expected behaviour is that when…
naman1901
  • 305
  • 4
  • 16
1
vote
4 answers

primeng p-table exportCSV() function not working?

I am using new PrimengV7 p-table I want export the table, So my code is
Soumya Gangamwar
  • 954
  • 4
  • 16
  • 44
1
vote
0 answers

How to extract HTML produced by PrimeNG p-dataTable

I've a page that uses PrimeNG p-dataTable. I need to export the data to Excel and PDF. For the excel, I'm using EPPLUS library. For the PDF, I've an online service that works fine as well. However, the PDF requires to submit HTML markups. Before…
Richard77
  • 20,343
  • 46
  • 150
  • 252
1
vote
1 answer

primeng p-datatable save filter header value

I'm using PrimeNg DataTable on an Angular app. I want to save filters and when returned to the component, restore filters and display filters value on the col headers. Actually I'm trying this, but it doesn't work: @ViewChild(DataTable) candTable:…
medsob
  • 21
  • 3
1
vote
1 answer

PrimeNG dataView Search Box Setup Issue

I am using p-dataView with Angular 5 and getting error Cannot read property 'split' of undefined at DataView.filter I read the documentation and could not find anything to resolve my issue. Also there no code needed in typescript side... so i just…
rgoal
  • 1,236
  • 11
  • 35
  • 61
1
vote
1 answer

p-dataTable expand rows when page load

p-dataTable expand rows when page load
SSSS
  • 205
  • 2
  • 8
  • 18
1
vote
1 answer

How to hide ng-template in p-datatable in angular so it does not take up space if no value is present in row?

The required output is that it does not take up space if rowsToExpand does not contain description i.e. ng-template should be hidden. How can we add a check on ng-template to avoid above issue.
Codeline
  • 11
  • 5
1
vote
1 answer

How to toggle disabled property from button if it's row has been selected by checkbox in a p-datatable

I am currently developing the user interface of a web application using angular6. I have a p-dataTable component (primeNG) with several rows, each row has as a first column a checkbox and as last one a disabled button by default. The goal is opening…
rmi8092
  • 63
  • 9
1
vote
1 answer

Issues in custom filtering boolean value in primeng Table

I am using primeng Table for displaying data in my Angular app, the issue i have right now is i have to use filter but with conditions, for example if user type 0, 1, or 2, i have to display data based on this, what i am trying is this …
Muhammad Arslan
  • 442
  • 1
  • 9
  • 25
1
vote
1 answer

scrollable and rtl doesn't work in primeNG table

I want to have a table with horizontal and vertical scrollbar . showcase in primeNg work properly when we don't use rtl direction for our table ! when we use horizontal scroll and rtl direction scroll doesn't scroll on table header ! table header is…
1
vote
1 answer

Primeng : sorting data which contains '-'

I am using primeNg to implement custom sort for "Row No:" field. The values in the row number field will be as below: 9864-3 4738-1 0935-4 2788-2 Source : https://primefaces.org/primeng/#/table/sort To sort the data I have done below…
Anna
  • 1,669
  • 7
  • 38
  • 63
1
vote
1 answer

PrimeNG remove row selection from table in single selection

I tried use Table - CRUD from PRIMENG but, i've the same problem just like the example. The selection continues even when i close the dialog. I wanna clear that selection after i close the dialog. i has tried even with @ViewChild references from…
Faqtt0
  • 125
  • 1
  • 3
  • 16
1
vote
0 answers

PrimeNG + Angular: Reset common data table

I am working on angular 5 and primeNg. My code uses primeNg . In one of my components, I have 2 data tables, hence I am using a common data table component, like below: CR common data table @Component({ selector:…
Anna
  • 1,669
  • 7
  • 38
  • 63
1
vote
0 answers

Is there any need to use PrimeNG pDefer with Lazy Loading?

In our Angular 6 project we use PrimeNG lazy loading feature for p-tables. On the other hand, there is a Deferring mechanism in PrimeNG explained below: The defer directive is very helpful to lazily load huge datasets when you use data iteration…
Jack
  • 1
  • 21
  • 118
  • 236