I have couple of questions on primeng treeTable,
- I see that the
expandlink intreedata.jsis/#but I want to change it to different routing links. In my case here it should be/productsummary. I added it intreedata.jsand working fine but I am usingtreeTablein other route which is/ordersSummaryso is there any attribute to use to change the routing url? - I was able to add dynamic columns depends on child nodes but could not able to figure it out how to add
(onNodeSelect)event only to the child node not the parent - I want the table look same as
dataTablelike each row will haveodd/evenclass to give zebra rows. - My
sortableandfilterfortreeTableparent nodes are not working
Here is my view code ...
<div class="row">
<div class="ui-grid-col-8">
<p-treeTable [value]="aggregatelazyFiles" [style]="{'margin-top':'50px'}" (onNodeExpand)="nodeExpand($event)" (onNodeCollapse)="nodeCollapse($event)" selectionMode="single" [(selection)]="selectedFile" (onNodeSelect)="getHourlyProductsSummary(selectedFile)">
<p-header>Daily Products Count Lazy Loading</p-header>
<p-column *ngFor="let col of cols" [field]="col.field" [header]="col.header" [sortable]="true" [filter]="true" filterPlaceholder="Search" ></p-column>
</p-treeTable>
</div>
</div>