I need to create a custom cell renderer on the hierarchy column in a tree data grid. The problem is that the tree gets flattened.
I've tried assigning a cell renderer on the autoGroupColumnDef:
this.autoGroupColumnDef = {
headerName: "Organisation Hierarchy",
cellRendererParams: { suppressCount: true },
cellRenderer: 'nameCellRenderer'
};
But the tree gets flattened (loses the hierarchy). Here is a plunker example:
https://plnkr.co/edit/YsTCsNGIikFY7eelGNJJ?p=preview
Figured it out. Had to add
innerRenderer: 'nameCellRenderer'
in cellRendererParams
. I updated the Plunker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With