Virtual Scroll Ptable not support Column Resize

UI Components for Angular
Post Reply
cheonghu
Posts: 1
Joined: 16 Sep 2020, 11:19

16 Sep 2020, 11:23

<p-table [value]="customers" [scrollable]="true" scrollHeight="200px" [resizableColumns]="true" styleClass="p-datatable-gridlines" [virtualScroll]="true" >
<ng-template pTemplate="colgroup">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
</ng-template>
<ng-template pTemplate="header">
<tr>
<th pResizableColumn>Name</th>
<th pResizableColumn>Country</th>
<th pResizableColumn>Company</th>
<th pResizableColumn>Representative</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-customer>
<tr>
<td>{{customer.name}}</td>
<td>{{customer.country.name}}</td>
<td>{{customer.company}}</td>
<td>{{customer.representative.name}}</td>
</tr>
</ng-template>
</p-table>

jfirebau
Posts: 2
Joined: 12 Oct 2020, 22:37

12 Oct 2020, 23:20

Anyone find a solution to this? We can't use this datatable component without virtual scrolling and column resize.

gator10
Posts: 1
Joined: 28 Dec 2020, 02:19

28 Dec 2020, 02:22

I am still searching for a solution to this. It does not work in version 11.0.0-rc.2

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests