primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Datatable with expandable rows and template columns uses wrong template

Open kurigohan opened this issue 10 years ago • 1 comments

The datatable renders the wrong template when using templating for a column in addition to the expandable rows. Instead of adding the template for the expandable row to the table on row expansion, it adds the template for the column.

kurigohan avatar Jul 24 '16 20:07 kurigohan

This is a bug of Angular2;

https://github.com/angular/angular/issues/8292

Current workaround is moving expansion template before column templates, right after <p-datataTable tag.

<p-dataTable
   <template />
   <p-column><template />

cagataycivici avatar Jul 25 '16 11:07 cagataycivici