Hi,
I have a scenario where I have to display a row group all time at the top of list as fixed in the tree grid and should exclude it from sorting the list of row groups as it always have to stay on top.
can you help me with this?
Thanks,
Mani
<igx-action-strip #actionStrip> <igx-grid-pinning-actions></igx-grid-pinning-actions> </igx-action-strip>
Thank you for the response.From the sample, I can see only one row is getting pinned in a grouped row.
I want the entire group to be prevented from sorting and is there any way to achieve my functionality without using the action strip module.
I want the first-row group to be pinned on the load itself without using an action strip.
public ngOnInit(): void { this.data = generateEmployeeFlatData(); this.pinRowAndAllChildren(this.data, this.data[0].ID); } private pinRowAndAllChildren(data: any, rowID: any) { let hasChildren = this.data.findIndex(item => item.ParentID === rowID); this.treeGrid.pinRow(rowID); if (hasChildren !== -1) { this.data .filter(item => item.ParentID === rowID) .forEach(item => { this.pinRowAndAllChildren(this.data, item.ID); }); } }