Questions tagged [primeng-datatable]

Questions about the PrimeNG DataTable component from PrimeTek Informatics.

Useful Links

474 questions
0
votes
1 answer

How to add image in primereact datable column

Hi I'm new to Reactjs and primereact https://www.primefaces.org/primereact/#/datatable. to bind the datas in table I have choosen prime react datatable. Now I dont know how to add image tag in datatable. I have tried with some image tag inside the…
0
votes
1 answer

I have sql server hierarchical data table with this sample structure and data:

My table structure is: Id name size type parrent_Id 1 AAAA 2k t1 null 2 BB 2k t2 1 3 CC 1k t3 1 4 DDDD 2k t4 null 5 EE 2k …
samjad ps
  • 73
  • 1
  • 8
0
votes
1 answer

PrimeNG table binding to a 2-dimensional array

I have to dynamically generate the data source for my PrimeNG table because I don't know how many columns I will have, or even what the Header for each column will be. I need the table to be editable with 2-way data binding. I am trying to use a…
0
votes
2 answers

Angular Primeng: Create Observable from lazyLoad event

I've coded this html: I'm trying to pick up this element in order to create an observable on onLazyLoad event: @ViewChild('usersTable') private usersTable: ElementRef; In order to create observable: public…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
2 answers

How to set background color to an entire cell with some element in a condition using PrimeNG

I'm trying to set a background in my entire cell (or my entire row) according to my condition, but the background it placed only at my HTML element. I already tried put some class at my trying to set the padding 0, I already tried put some…
paulotarcio
  • 461
  • 1
  • 5
  • 20
0
votes
1 answer

Cancel page request in lazy load

Is there any way to rest the page links to before page request in the table's paginator? Using lazy option to load pages from the server. However under certain circumstances I need to cancel the lazy load request. I do this by ignoring requested…
Shawn
  • 1
0
votes
1 answer

PrimeNg - unable to filter p-table with a parameter

Im using Angular 7 and PrimeNg library. I have my p-table delaration:
0
votes
2 answers

How to check that a p-datatable has been rendered?

Let say I have a parent and child components. On the child component I need…
Richard77
  • 20,343
  • 46
  • 150
  • 252
0
votes
1 answer

Angular - Primeng datatable sort icon missing after tomcat deployment

I am trying to deploy my all working angular code in Tomcat. Everything works good except the sort icons are missing in the primeng datatable. Other font awesome icons are coming up well. In the chrome console, Failed to decode downloaded font:…
RiyaGeorge
  • 135
  • 1
  • 14
0
votes
0 answers

How to filter PrimeNG Data table column, where field is a JSON

I have a Data Table with two columns, each one having a filter input. Values are populating in rows as expected. The only problem lies with "director" filter. Fields are defined as: this.moviecols = [ { field: "name", header: 'NAME' }, {…
rishav
  • 441
  • 9
  • 27
0
votes
0 answers

p: rowExpansion repeats the component each time the expansion arrow is pressed

Pressing the arrow to expand the row repeats the element several times.
0
votes
2 answers

PrimeNG DataTable programmatically select row checkbox

Hi I will be having a 'selectedrow' array list in my ngOninit(). I want to make selection to all row checkboxes which is in 'selectedrow' variable. https://stackblitz.com/edit/github-4vvqp4-xbrzdy?file=src%2Fapp%2Fapp.component.html
Spy1984
  • 89
  • 3
  • 12
0
votes
2 answers

Date column sort is not working in Primeng

I have a table using Primeng for displaying the table values. In the table there is one column for date, for date the sort option is not working. It is considering as normal string value instead of Date. From the service getting the date in…
Shiny
  • 127
  • 1
  • 6
  • 12
0
votes
1 answer

Angular PrimeNG || Unable to autofit column width for Table Horizontal and Vertical

I have created p-table with Horizontal &Vertical scrollable table using PrimeNG. It’s contains more rows & columns. Here, I’m facing the challenges unable to adjust the column width automatically instead of hard-coding width.
user2932411
  • 147
  • 1
  • 4
  • 14
0
votes
1 answer

PrimeNG p-dataView with not repeating FieldSet

I am using p-dataView and I would like to use p-fieldset depending on the application type and I would like to find a way for the fieldset not to be repeated. Below is just one case, I will ending up with multiple fieldsSet. Not sure what will be…
rgoal
  • 1,236
  • 11
  • 35
  • 61