Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aggrid cell renderer on autoGroupColumnDef flattens tree

Tags:

ag-grid

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

like image 846
mila Avatar asked Nov 18 '25 08:11

mila


1 Answers

Figured it out. Had to add innerRenderer: 'nameCellRenderer' in cellRendererParams . I updated the Plunker

like image 177
mila Avatar answered Nov 21 '25 08:11

mila



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!