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>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests